Closed Bug 2070328 Opened 2 months ago Closed 2 months ago

[wpt-sync] Sync PR 62330 - layout: Advance the containing block walk past boxless ancestors

Categories

(Core :: Layout, task, P4)

task

Tracking

()

RESOLVED FIXED
158 Branch
Tracking Status
firefox158 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 62330 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/62330
Details from upstream follow.

mxmgorin <102797145+mxmgorin@users.noreply.github.com> wrote:

layout: Advance the containing block walk past boxless ancestors

containing_block_for_node walks up the flat tree, but assigns current_ancestor only at the bottom of the loop body. The early continue for an ancestor with no layout box therefore re-reads the same flat tree parent forever. It is an infinite loop in the script thread.

Testing: Two new tests in intersection-observer. Both timeout without this change.
Fixes: #<!-- nolink -->45915
Reviewed in servo/servo#47693

Component: web-platform-tests → Layout
Product: Testing → Core

CI Results

Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 151 tests

Status Summary

Firefox

OK : 2[GitHub] 146[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS : 2[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt, GitHub] 313[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 318[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 319[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 321[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt]
FAIL : 96[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 98[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 104[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview]
TIMEOUT: 2
ERROR : 2

Chrome

OK : 2
PASS : 2

Safari

OK : 2
PASS : 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 158 Branch
You need to log in before you can comment on or make changes to this bug.