Closed Bug 2081591 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63617 - Do not expose pseudo-elements through LargestContentfulPaint API

Categories

(Core :: DOM: Performance APIs, task, P4)

task

Tracking

()

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Rune Lillesveen <futhark@chromium.org> wrote:

Do not expose pseudo-elements through LargestContentfulPaint API

If a PseudoElement is stored as the element_ in the
LargestContentfulPaint object, we would expose that to javascript
through the element attribute.

This could cause all sorts of problems, letting javascript be able to
modify them as if they were true elements, moving them around the tree
in unexpected places and setting attributes on them, for instance.

Specifically, the issue reported was modifying querySelector caches
while being traversed due to slot re-assignment.

Bug: 570638836
Change-Id: I44d87a537a7da52fa9dc2aa577a58a888c94f3de
Reviewed-on: https://chromium-review.googlesource.com/8545831
WPT-Export-Revision: 571047b8755df495d5bc6e25876cbdd344be5573

Component: web-platform-tests → DOM: Performance APIs
Product: Testing → Core

CI Results

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

Total 73 tests and 1 subtests

Status Summary

Firefox

OK : 69[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-linux2404-64-debug, Gecko-windows11-32-25h2-opt] 70[Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS : 108[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-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] 109[Gecko-android-em-14-x86_64-opt-geckoview]
FAIL : 10[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-windows11-32-25h2-opt] 11[Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
TIMEOUT: 2[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-64-25h2-debug, Gecko-windows11-64-25h2-opt, GitHub] 4[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-windows11-32-25h2-opt]

Chrome

OK : 1
FAIL : 1

Safari

OK : 1
FAIL : 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

Firefox-only Failures

New Tests That Don't Pass

Tests Disabled in Gecko Infrastructure

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