Closed Bug 2094418 Opened 12 days ago Closed 7 days ago

test_wheel_zoom_on_form_controls.html leaves the harness page zoomed out, and fails when run twice in a row

Categories

(Core :: DOM: UI Events & Focus Handling, task)

task

Tracking

()

RESOLVED FIXED
163 Branch
Tracking Status
firefox163 --- fixed

People

(Reporter: florian, Assigned: florian)

References

Details

Attachments

(1 external file)

dom/events/test/test_wheel_zoom_on_form_controls.html zooms out with Ctrl+wheel once for each of its 5 form controls. It restores the zoom after each step with SpecialPowers.setFullZoom(window, initialZoom), but window is the test iframe. The wheel zoom applies to the top-level browsing context, so the harness page stays zoomed out a bit more after each step, ending at 50% after one run.

When the test runs twice in the same browser (the upcoming mochitest-plain-repeat jobs), the zoom reaches its 20% minimum partway through the second run. After that, select and list can no longer zoom and fail with "should have zoomed - didn't expect 1, but got it".

The fix resets the zoom on window.top instead.

Blocks: 2095794

Ctrl+wheel zooms the top-level browsing context, but the test only reset the zoom of its own iframe, so every step left the harness page zoomed out further. When the test runs twice in the same browser, the zoom reaches its minimum and the later controls cannot zoom anymore.

Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/de9a08c55068 https://hg.mozilla.org/integration/autoland/rev/5544870c65cd Reset the top-level zoom after each control in test_wheel_zoom_on_form_controls.html, r=dom-core-reviewers,smaug.
Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/9f776e8d97eb https://hg.mozilla.org/integration/autoland/rev/ba7caafe33f6 Reset the top-level zoom after each control in test_wheel_zoom_on_form_controls.html, r=dom-core-reviewers,smaug.
Status: ASSIGNED → RESOLVED
Closed: 7 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: