Closed Bug 2086753 Opened 1 month ago Closed 23 days ago

Single-test chrome mochitest harness frame extends 30px below the window

Categories

(Testing :: Mochitest, defect)

defect

Tracking

(firefox162 fixed)

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: florian, Assigned: florian, NeedInfo)

References

(Blocks 1 open bug)

Details

Attachments

(1 external file)

When a single chrome mochitest runs (as in every mochitest-chrome-standalone job), testing/mochitest/static/harness.css gives #xulharness height: 100% through the body[singletest="true"] rule. #xulharness is also position: fixed; top: 30px; bottom: 0, so the body becomes as tall as the viewport but starts 30px down, and the test frame ends 30px below the window.

When the window fills the screen height, part of the test frame is off-screen. Popups in the frame are constrained to its visible part, so tall popups come out shorter than requested in test_popupanchor.xhtml ("height is what we requested") and test_popupincontent.xhtml ("large menu bottom"). Both have been skipped on Windows standalone since bug 2026600.

Fix: set height: auto in the #xulharness rule so the fixed-position box keeps its top/bottom constraints.

#xulharness is fixed-positioned with a top offset, but the singletest rule also made it as tall as the viewport, pushing the bottom of the test frame below the window. Popups in the frame are constrained to its on-screen part, so tall popups came out shorter than requested in test_popupanchor.xhtml and test_popupincontent.xhtml when run alone (skipped on Windows standalone in bug 2026600).

Blocks: 2086769

The severity field is not set for this bug.
:florian, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(florian)
Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/d994be76753a https://hg.mozilla.org/integration/autoland/rev/9e1791601e0a Keep the single-test chrome mochitest frame inside the harness window, r=reusable-components-reviewers,tgiles.
Status: ASSIGNED → RESOLVED
Closed: 23 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: