Closed Bug 2086915 Opened 1 month ago Closed 17 days ago

[wpt-sync] Sync PR 64120 - Paint timing: attribute anonymous content-image pseudos via GeneratingNode

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox162 fixed)

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Jose Dapena Paz <jdapena@igalia.com> wrote:

Paint timing: attribute anonymous content-image pseudos via GeneratingNode

An image generated by "content: url(...)" on a pseudo element is laid
out as an anonymous LayoutImage, whose GetNode() is null.
ImagePaintTimingDetector::RecordImage() resolved non-background images
via GetNode(), and the soft navigation paint attribution tracker skipped
anonymous image objects, so these images were never LCP/ICP candidates
nor attributed to a soft navigation.

Resolve them via LayoutObject::GeneratingNode(), as ElementTiming and
RecordImage() for background images already do. The record keeps keying
on the painting LayoutObject, so removing the anonymous image still
clears it. This also makes list-style-image markers, the other anonymous
LayoutImage, LCP/ICP candidates, matching ElementTiming.

Both changes are gated on the new PaintTimingContentImagePseudoElements
runtime flag (experimental). It replaces AllImagesPaintedSentToElementTiming,
so a single flag covers all paint timing clients.
PaintTimingVisualizer::RecordObject() also uses GeneratingNode(), so
anonymous objects get a dom_node_id in traces.

Tests: unit tests for the enabled, disabled, removal and list marker
cases; WPTs for hard-navigation LCP and for ICP with and without a
competing text node.

Bug: 571179206
Change-Id: Ie58eb5f09081e8c706852fe18538b3da11442c61
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8130402
Reviewed-by: Scott Haseley \<shaseley@chromium.org>
Commit-Queue: José Dapena Paz \<jdapena@igalia.com>
Cr-Commit-Position: refs/heads/main@{#1725940}

Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

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

Total 88 tests and 1 subtests

Status Summary

Firefox

OK : 3[GitHub] 71[Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 72[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS : 1[GitHub] 110[Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 111[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL : 2[GitHub] 10[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]
TIMEOUT: 2

Chrome

OK : 2
FAIL : 2
TIMEOUT: 2

Safari

OK : 2
FAIL : 2
TIMEOUT: 2

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/1d67664070f3 https://hg.mozilla.org/integration/autoland/rev/ea80e1a388cd [wpt PR 64120] - Paint timing: attribute anonymous content-image pseudos via GeneratingNode, a=testonly
Status: NEW → RESOLVED
Closed: 17 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.