Closed Bug 2086930 Opened 1 month ago Closed 19 days ago

[wpt-sync] Sync PR 64138 - Fix UAF in TransitionPseudoElementData::ClearPseudoElements

Categories

(Core :: CSS Parsing and Computation, task, P4)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Mason Freed <masonf@chromium.org> wrote:

Fix UAF in TransitionPseudoElementData::ClearPseudoElements

Move transition_containers_ into a local map before disposing entries
in TransitionPseudoElementData::ClearPseudoElements, and release
column_pseudo_elements_ and transition_data_ before clearing them in
PseudoElementData::ClearPseudoElements so re-entrant lookups or
mutations cannot invalidate an active iterator.

Also prevent PseudoElements from being registered in TreeScope ID or
name maps in Element::UpdateId and Element::UpdateName, and ensure
HitTestResult::GetPosition uses inner_node_ rather than a PseudoElement
when ChildPaintBlockedByDisplayLock is true.

Fixed: 576169244
Bug: 576169244
Change-Id: I3d412dd2defa1eb3149d1d1fa254a8a367571f4c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8634694
Reviewed-by: Noam Rosenthal \<nrosenthal@google.com>
Auto-Submit: Mason Freed \<masonf@chromium.org>
Commit-Queue: Noam Rosenthal \<nrosenthal@google.com>
Cr-Commit-Position: refs/heads/main@{#1726202}

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

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

Total 526 tests and 1 subtests

Status Summary

Firefox

OK : 1[GitHub] 158[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] 160[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 : 1[GitHub] 23[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 1367[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 1609[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview] 1610[Gecko-android-em-14-x86_64-opt-geckoview] 1615[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 1618[Gecko-linux2404-64-debug] 1619[Gecko-linux2404-64-opt]
FAIL : 75[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 131[Gecko-linux2404-64-opt] 132[Gecko-linux2404-64-debug] 135[Gecko-android-em-14-x86_64-opt-geckoview, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 136[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview]
TIMEOUT: 11[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 13[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 : 2[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] 3[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]

Chrome

OK : 1
PASS : 1

Safari

OK : 1
PASS : 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Tests Disabled in Gecko Infrastructure

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/203eb732299c https://hg.mozilla.org/integration/autoland/rev/5df27c4bbed0 [wpt PR 64138] - Fix UAF in TransitionPseudoElementData::ClearPseudoElements, a=testonly
Status: NEW → RESOLVED
Closed: 19 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.