Closed Bug 2094004 Opened 9 days ago Closed 8 days ago

browser_914138_widget_API_overflowable_toolbar.js leaves the window narrow when a window resize completes late, breaking the next run of the test

Categories

(Firefox :: Toolbars and Customization, task)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: florian, Assigned: florian)

References

Details

Attachments

(1 external file)

browser_914138_widget_API_overflowable_toolbar.js failed in a mochitest-browser-chrome-repeat try job on Linux 24.04 debug, on its second run: Cleanup function threw an exception - undefined - timed out after 50 tries.

Each task ends with unensureToolbarOverflow, which calls window.resizeTo to restore the original width, but the task only waits for the nav-bar to stop overflowing. On X11 the resize is asynchronous, so insertBeforeFirstItemInOverflow can read a stale, narrow window.outerWidth as its original width, and its cleanup then leaves the window 500px wide. The next run of the test starts with that narrow window, and the toolbar never stops overflowing.

The patch makes each task wait for the resize event that brings the window back to its original width, and re-enables the test's browser.toml variant on Linux, skipped since bug 966190 as unreliable there.

Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/0d1f7ff9417b https://hg.mozilla.org/integration/autoland/rev/81bdc44a2b7d Wait for the window to be resized back in browser_914138_widget_API_overflowable_toolbar.js, r=Gijs.
Status: ASSIGNED → RESOLVED
Closed: 8 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: