Bug 1865314 [wpt PR 43227] - LoAF: count tasks with UI events towards blockingDuratio...
commit31a4b841e0dbd262571c2e59fd4af71b87c06adc
authorNoam Rosenthal <nrosenthal@chromium.org>
Mon, 20 Nov 2023 11:14:25 +0000 (20 11:14 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Wed, 22 Nov 2023 09:34:48 +0000 (22 09:34 +0000)
treec6006037f44fa6da04a475718708a97ebbfd8e01
parent631e0a8c82d97587b190e493a3362fc7e047649c
Bug 1865314 [wpt PR 43227] - LoAF: count tasks with UI events towards blockingDuration, a=testonly

Automatic update from web-platform-tests
LoAF: count tasks with UI events towards blockingDuration

Apparently UI events are sent in a task that's not associated
with a frame (using the input task source), so the
AnimationFrameTimingMonitor thought that it was a task
unrelated to the current widget.

Fixed by applying the task duration if this task produced
any UI events.

Bug: 1501836
Change-Id: I482ada6850e0b97e7e1fc6237e75905881017587
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5033867
Reviewed-by: Michal Mocny <mmocny@chromium.org>
Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org>
Cr-Original-Commit-Position: refs/heads/main@{#1225647}
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5039591
Cr-Commit-Position: refs/heads/main@{#1226100}

--

wpt-commits: 9d656455225c3a5c0c2decb7ee865e8c61c9c186
wpt-pr: 43227
testing/web-platform/tests/long-animation-frame/tentative/loaf-event-blocking-duration.html [new file with mode: 0644]