Closed Bug 2094830 Opened 15 days ago Closed 13 days ago

[wpt-sync] Sync PR 65002 - ContainerTiming: attribute paints and create entries at paint time

Categories

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

task

Tracking

(firefox163 fixed)

RESOLVED FIXED
163 Branch
Tracking Status
firefox163 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

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

ContainerTiming: attribute paints and create entries at paint time

Paints were replayed through the attribution tracker at presentation
time, when the DOM and tracker may have changed since the paint, and
entries took the navigation id current at presentation.

Attribute each paint and grow the container records during paint, and
create the entries at the end of paint, like element timing. The
presentation callback only sets their timing and navigation id with
FinalizeEntry(), then reports them. Only the records that grew since
the last entries are kept, so creating entries does not scan every
record.

Changing or removing containertiming, or detaching the element, after
paint no longer affects entries for that paint. See [1] and [2].
Disconnecting a container root still drops its record, but an entry
already created for that paint is reported.

[1] https://github.com/w3c/container-timing/issues/87
[2] https://github.com/w3c/container-timing/pull/88

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

CI Results

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

Total 1 tests and 1 subtests

Status Summary

Firefox

OK : 1
FAIL: 1

Chrome

OK : 1
PASS: 1

Safari

OK : 1
FAIL: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

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