Closed Bug 2075762 Opened 2 months ago Closed 1 month ago

[wpt-sync] Sync PR 62972 - [css-overflow] Fix crash when scroll-marker-group position changes

Categories

(Core :: Layout: Scrolling and Overflow, task, P4)

task

Tracking

()

RESOLVED FIXED
159 Branch
Tracking Status
firefox159 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Sky Debreuil <skydebreuil@google.com> wrote:

[css-overflow] Fix crash when scroll-marker-group position changes

Changing scroll-marker-group between 'before' and 'after' should replace
the corresponding ::scroll-marker-group pseudo-element. Blink did not
recognize this as a pseudo-element change, so the old group remained.
During layout-tree rebuilding, both groups could try to attach the same
markers.

This hits DCHECK(!GetLayoutObject()) in
PseudoElement::AttachLayoutTree().

Treat position changes as pseudo-element style changes so the old group
is removed before the new one is attached.

Toggling whether the element is a scroll container also changes which
pseudo-elements exist. That is more involved and will be fixed in a
follow-up CL.

Bug: 564557265, 500793607
Change-Id: Idfc661a8e5a9f4653c2f2c2fe0a445769d31cc48
Reviewed-on: https://chromium-review.googlesource.com/8395609
WPT-Export-Revision: abba8f99078e25ae921ad3eb9dec7ae31f369f2c

Component: web-platform-tests → Layout: Scrolling and Overflow
Product: Testing → Core

CI Results

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

Total 193 tests and 4 subtests

Status Summary

Firefox

OK : 69
PASS : 18[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 35[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 44[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] 47[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL : 3[GitHub] 140[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 221[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 223[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: 3[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 4[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]
ERROR : 1
NOTRUN : 1

Chrome

FAIL : 3

Safari

FAIL : 3

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Tests Disabled in Gecko Infrastructure

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