Closed Bug 2076112 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63007 - Don't keep reference to attribute AtomicString during style resolution

Categories

(Core :: CSS Parsing and Computation, 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 63007 into mozilla-central (this bug is closed when the sync is complete).

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

Rune Lillesveen <futhark@chromium.org> wrote:

Don't keep reference to attribute AtomicString during style resolution

Attribute synchronization may change internal attribute storage during
style resolution. Keep a local AtomicString for ShadowPseudoId() instead
of a reference pointing into the internal attribute storage.

Fixes UAF crasher.

Bug: 565742178
Change-Id: I00f0d4fc35594254939ad74a1734c8eda37bd2f2
Reviewed-on: https://chromium-review.googlesource.com/8469947
WPT-Export-Revision: 80153b4b5fd9513fa1f2bf0c146f7a8a1fc07acb

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 2 tests

Status Summary

Firefox

PASS : 1[GitHub] 2[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-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt, 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]

Chrome

CRASH : 1

Safari

TIMEOUT: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/d003404883db https://hg.mozilla.org/integration/autoland/rev/dfb22e4a96fa [wpt PR 63007] - Don't keep reference to attribute AtomicString during style resolution, a=testonly
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.