Closed Bug 1817631 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 38584 - Initial implementation of PerformanceLongAnimationFrame.

Categories

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

task

Tracking

(firefox112 fixed)

RESOLVED FIXED
112 Branch
Tracking Status
firefox112 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Depends on 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

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

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

Noam Rosenthal <nrosenthal@chromium.org> wrote:

Initial implementation of PerformanceLongAnimationFrame.

  • Added IDL for PerformanceLongAnimationFrame
  • Added main infrastructure to measure long frames, without support
    for scripts (yet).

How it works:

  • PerformanceMonitor keeps track of whether the current task
    belongs to the current frame tree (same LocalRoot).
    Note that PerformanceMonitor has an instance per LocalRoot.

  • If a task ends without pending updates, report it as a long
    frame only to frames within the same LocalRoot.

  • Otherwise, keep track of the start time and report to all
    affected frames when the frame has done rendering
    (right after intersection observers, before
    painting/compositing).

Next steps:

  • Add support for scripts
  • Generate UKM data from this, to be examined while trying out the
    API.

Bug: 1392685
Change-Id: Ic94fd24402e6365b0043a91fdeb413892261ad29
Reviewed-on: https://chromium-review.googlesource.com/4259728
WPT-Export-Revision: d36d3e51dad762f736d37c773428a89f8172cb93

CI Results

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

Total 6 tests

Status Summary

Firefox

OK : 1
FAIL : 1
ERROR: 5

Chrome

OK : 1
FAIL : 1
ERROR: 5

Safari

OK : 1
FAIL : 1
ERROR: 5

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/151b1d5d6ae7 [wpt PR 38584] - Initial implementation of PerformanceLongAnimationFrame, a=testonly https://hg.mozilla.org/integration/autoland/rev/275bf443b850 [wpt PR 38584] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch
You need to log in before you can comment on or make changes to this bug.