Fix broken tests in Firefox.