Closed Bug 2086752 Opened 29 days ago Closed 28 days ago

test_bug517396.xhtml fails in mochitest-chrome-standalone on Windows because the browser window starts maximized

Categories

(Core :: Widget: Win32, task)

task

Tracking

()

RESOLVED FIXED
161 Branch
Tracking Status
firefox161 --- fixed

People

(Reporter: florian, Assigned: florian)

References

(Blocks 1 open bug)

Details

Attachments

(1 external file)

widget/tests/test_bug517396.xhtml fails every time on Windows in mochitest-chrome-standalone with restored window has wrong width - got 1168, expected 1296 and restored window has wrong height - got 886, expected 992. It was skipped in bug 2026600.

On a new profile, onBeforeInitialXULLayout in browser/base/content/browser-init.js opens the window maximized on small screens, including the 1280x1024 Windows CI screen. So in standalone runs the test measures an already-maximized window, and restore() correctly shrinks it to its normal size.

The fix restores the window before the test measures it (and maximizes it again at the end), and removes the skip-if.

New profiles open the browser window maximized on small screens, which is the case on Windows CI and made the test fail in the standalone variant.

Severity: -- → S4
Blocks: 2086769
Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/09705d376141 https://hg.mozilla.org/integration/autoland/rev/0d11d9920c14 Restore the browser window before measuring it in test_bug517396.xhtml and remove the skip-if added in bug 2026600, r=win-reviewers,gstoll.
Status: ASSIGNED → RESOLVED
Closed: 28 days ago
Resolution: --- → FIXED
Target Milestone: --- → 161 Branch
QA Whiteboard: [qa-triage-done-c162/b161]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: