Closed Bug 2086756 Opened 1 month ago Closed 29 days ago

test_layerization.html fails in mochitest-plain-standalone: displayport threshold ignores ancestor clipping

Categories

(Core :: Panning and Zooming, 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)

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.

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.

Blocks: 2086769
Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/ec0337a9092e https://hg.mozilla.org/integration/autoland/rev/601dc978ba5d Compare subframe displayports to their visible height in test_layerization.html, r=gfx-reviewers,bradwerth.

Backed out for causing mochitest failures @test_videocontrols_audio_direction.html.

Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/eaa67c5f12c3 https://hg.mozilla.org/integration/autoland/rev/d5e20a3834c9 Compare subframe displayports to their visible height in test_layerization.html, r=gfx-reviewers,bradwerth.
Status: ASSIGNED → RESOLVED
Closed: 29 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: