[wpt-sync] Sync PR 63617 - Do not expose pseudo-elements through LargestContentfulPaint API
Categories
(Core :: DOM: Performance APIs, task, P4)
Tracking
()
| 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
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=104680
| Assignee | ||
Comment 2•1 month ago
|
||
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
- /largest-contentful-paint/animated/observe-video.tentative.html [wpt.fyi]:
SKIP - /largest-contentful-paint/video-data-uri.html [wpt.fyi]:
SKIP - /largest-contentful-paint/animated/observe-animated-image-gif.tentative.html [wpt.fyi]
- Same origin animated image is observable and has a first frame.:
FAIL
- Same origin animated image is observable and has a first frame.:
- /largest-contentful-paint/animated/observe-animated-image-webp.tentative.html [wpt.fyi]
- Same origin animated image is observable and has a first frame.:
FAIL
- Same origin animated image is observable and has a first frame.:
- /largest-contentful-paint/animated/observe-animated-image.tentative.html [wpt.fyi]
- Same origin animated image is observable and has a first frame.:
FAIL
- Same origin animated image is observable and has a first frame.:
- /largest-contentful-paint/background-image-set-image.html [wpt.fyi]
- Background image-set images should be eligible for LCP candidates:
FAIL[Gecko-android-em-14-x86_64-lite-opt-geckoview],PASS[Gecko-android-em-14-x86_64-debug-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]
- Background image-set images should be eligible for LCP candidates:
- /largest-contentful-paint/image-upscaling-empty-url.html [wpt.fyi]
- A background image smaller than the container should report the natural size:
FAIL
- A background image smaller than the container should report the natural size:
- /largest-contentful-paint/image-upscaling.html [wpt.fyi]
- A background image smaller than the container should report the natural size:
FAIL
- A background image smaller than the container should report the natural size:
- /largest-contentful-paint/initially-invisible-images.html [wpt.fyi]
- Image visibility: out-of-viewport images are observable by LargestContentfulPaint once they become visible.:
FAIL
- Image visibility: out-of-viewport images are observable by LargestContentfulPaint once they become visible.:
- /largest-contentful-paint/loadTime-after-appendChild.html [wpt.fyi]:
OK[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-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],SKIP[Gecko-linux2404-64-debug] - /largest-contentful-paint/observe-pseudo-element.tentative.html [wpt.fyi]:
TIMEOUT(Chrome:OK, Safari:OK)- largest-contentful-paint should not expose pseudo-elements:
TIMEOUT(Chrome:FAIL, Safari:FAIL)
- largest-contentful-paint should not expose pseudo-elements:
- /largest-contentful-paint/performance-entry-sequence.html [wpt.fyi]:
OK[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],TIMEOUT[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-windows11-32-25h2-opt]- Exactly one LargestContentfulPaint entry is emitted per frame when a new candidate is rendered:
FAIL[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],PASS[Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview],TIMEOUT[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-windows11-32-25h2-opt]
- Exactly one LargestContentfulPaint entry is emitted per frame when a new candidate is rendered:
- /largest-contentful-paint/text-fragment-union.html [wpt.fyi]
- Text fragment union: wrapped text LCP size reflects the union of all line boxes.:
FAIL
- Text fragment union: wrapped text LCP size reflects the union of all line boxes.:
- /largest-contentful-paint/web-font-styled-text-resize-swap-after-interaction.html [wpt.fyi]
- LCP should be not updated if the web font styled text resize occurs after an interaction happens:
FAIL
- LCP should be not updated if the web font styled text resize occurs after an interaction happens:
- /largest-contentful-paint/web-font-styled-text-resize-swap-subnode.html [wpt.fyi]
- LCP should be updated if the web font styled text resizes to be larger during the swap period:
FAIL
- LCP should be updated if the web font styled text resizes to be larger during the swap period:
- /largest-contentful-paint/web-font-styled-text-resize-swap.html [wpt.fyi]
- LCP should be updated if the web font styled text resizes to be larger during the swap period:
FAIL
- LCP should be updated if the web font styled text resizes to be larger during the swap period:
Tests Disabled in Gecko Infrastructure
- /largest-contentful-paint/animated/observe-video.tentative.html [wpt.fyi]:
SKIP - /largest-contentful-paint/video-data-uri.html [wpt.fyi]:
SKIP - /largest-contentful-paint/loadTime-after-appendChild.html [wpt.fyi]:
OK[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-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],SKIP[Gecko-linux2404-64-debug]
Comment 4•1 month ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/4f4dab49d5a7
https://hg.mozilla.org/mozilla-central/rev/061e78ae02bf
Description
•