test_bug517396.xhtml fails in mochitest-chrome-standalone on Windows because the browser window starts maximized
Categories
(Core :: Widget: Win32, task)
Tracking
()
| 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.
| Assignee | ||
Comment 1•29 days ago
|
||
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.
Updated•29 days ago
|
Comment 3•28 days ago
|
||
| bugherder | ||
Updated•17 days ago
|
Description
•