tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit b464c4963ee8f38685b5ca52f277e0790a8888ac
parent 1ba9d6a01edd54a6f914ae71fa6a0396ddb4b4b4
Author: Jose Dapena Paz <jdapena@igalia.com>
Date:   Thu,  4 Dec 2025 16:56:02 +0000

Bug 2001498 [wpt PR 56167] - ContainerTiming: support PaintTimingMixin, a=testonly

Automatic update from web-platform-tests
ContainerTiming: support PaintTimingMixin

Expose paintTime and presentationTime in the container timing
entries. The implementation is easy as we were obtaining already
accurate PaintTimingInfo (providing this information), so it was
just setting the value on the entry creation.

Explainer: https://github.com/bloomberg/container-timing/blob/main/README.md
Chromestatus: https://chromestatus.com/feature/5110962817073152
I2P: https://groups.google.com/a/chromium.org/g/blink-dev/c/J-WxY0w7bNk/m/VkqnomK-CAAJ

Ticket for supporting the mixin in the specification:
https://github.com/bloomberg/container-timing/issues/25

Bug: 378827535, 382422286
Change-Id: I98fd8b6821ddff2aeda03e81915a739a88b6d098
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7150902
Reviewed-by: Michal Mocny <mmocny@chromium.org>
Commit-Queue: José Dapena Paz <jdapena@igalia.com>
Cr-Commit-Position: refs/heads/main@{#1553483}

--

wpt-commits: 6a78bd4aa257b9ccc31aa763aa4eb9992a5a7c84
wpt-pr: 56167

Diffstat:
Mtesting/web-platform/tests/container-timing/resources/container-timing-helpers.js | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/testing/web-platform/tests/container-timing/resources/container-timing-helpers.js b/testing/web-platform/tests/container-timing/resources/container-timing-helpers.js @@ -15,6 +15,14 @@ function checkContainerEntry(entry, identifier, last_element_id, beforeRender) { 'startTime greater than beforeRender'); assert_greater_than_equal( performance.now(), entry.startTime, 'startTime bound by now()') + + // PaintTimingMixin + if ("presentationTime" in entry && entry.presentationTime !== null) { + assert_greater_than(entry.presentationTime, entry.paintTime); + assert_equals(entry.presentationTime, entry.startTime); + } else { + assert_equals(entry.startTime, entry.paintTime); + } } function checkContainerSize(entry, size) {