test_layerization.html fails in mochitest-plain-standalone: displayport threshold ignores ancestor clipping
Categories
(Core :: Panning and Zooming, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox161 | --- | fixed |
People
(Reporter: florian, Assigned: florian)
References
(Blocks 1 open bug)
Details
Attachments
(1 external file)
gfx/layers/apz/test/mochitest/test_layerization.html fails every time in the mochitest-plain-standalone jobs, so it was skipped there in bug 2026600. The failing checks are "scrolling 'inner2' should cause it to be directly activated" and "inner2 still has non zero display port after enabling expiry", and the same two for inner4.
hasNonZeroMarginDisplayPort expects the displayport height to be at least 1.75 * min(elt.clientHeight, window.innerHeight). A subframe's displayport is built from its visible rect, though (see ScrollContainerFrame::DecideScrollableLayer). inner2 and inner4 are about 970px tall but their parents clip them to about 415px, so their displayport is 1348px tall whatever the window size. The standalone jobs have a 951px-tall window, which puts the threshold at 1664px. The regular jobs pass only because their window is smaller.
The test should compare against the height that ancestors and the window leave visible, and the standalone skip should be removed.
| Assignee | ||
Comment 1•1 month ago
|
||
inner2 and inner4 are clipped by their parent, so their displayport is built from the visible rect and doesn't grow with the window.
The standalone jobs' taller window (innerHeight 951) pushed the old min(clientHeight, innerHeight) threshold above it, so this removes the standalone skip added in bug 2026600.
Comment 3•29 days ago
|
||
Backed out for causing mochitest failures @test_videocontrols_audio_direction.html.
Comment 5•29 days ago
|
||
| bugherder | ||
Updated•18 days ago
|
Description
•