Closed Bug 2033473 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 59321 - Add performance.speculations.preloads for speculation measurement

Categories

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

task

Tracking

(firefox152 fixed)

RESOLVED FIXED
152 Branch
Tracking Status
firefox152 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Yoav Weiss <yoavweiss@chromium.org> wrote:

Add performance.speculations.preloads for speculation measurement

Expose preload measurement data on the Performance object.
This provides a live API that can be queried at any time, not just
during page unload.

The "used" attribute contains a coarsened timestamp indicating when the
resource was used.

The "crossorigin" and "as" attributes contain the relevant attributes
of the fetched resource.

Co-Authored-By: AI (Claude Opus 4.6 via Pi) \<noreply@pi.dev>

Change-Id: I6693be2f65d2fb83d5fc1137168d75b22a438917
Bug: 481590676
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7715319
Reviewed-by: Hiroki Nakagawa \<nhiroki@chromium.org>
Commit-Queue: Yoav Weiss (@Shopify) \<yoavweiss@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1616799}

CI Results

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

Total 2 tests and 8 subtests

Status Summary

Firefox

OK : 2
FAIL: 18

Chrome

OK : 2
FAIL: 18

Safari

OK : 2
FAIL: 18

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /speculation-rules/speculation-measurement/performance-speculations-unused-preload.tentative.html [wpt.fyi]
    • performance.getSpeculations() basic interface: FAIL (Chrome: FAIL, Safari: FAIL)
    • Unused preload: as=script, no crossorigin: FAIL (Chrome: FAIL, Safari: FAIL)
    • Unused preload: as=script, crossorigin=anonymous: FAIL (Chrome: FAIL, Safari: FAIL)
    • Unused preload: as=script, crossorigin=use-credentials: FAIL (Chrome: FAIL, Safari: FAIL)
    • Unused preload: as=style, no crossorigin: FAIL (Chrome: FAIL, Safari: FAIL)
    • Unused preload: as=style, crossorigin=anonymous: FAIL (Chrome: FAIL, Safari: FAIL)
    • Unused preload: as=style, crossorigin=use-credentials: FAIL (Chrome: FAIL, Safari: FAIL)
    • Unused preload: as=fetch, no crossorigin: FAIL (Chrome: FAIL, Safari: FAIL)
    • Unused preload: as=fetch, crossorigin=anonymous: FAIL (Chrome: FAIL, Safari: FAIL)
    • Unused preload: as=fetch, crossorigin=use-credentials: FAIL (Chrome: FAIL, Safari: FAIL)
  • /speculation-rules/speculation-measurement/performance-speculations-used-preload.tentative.html [wpt.fyi]
    • Used preload: as=script, no crossorigin: FAIL (Chrome: FAIL, Safari: FAIL)
    • Used preload: as=script, crossorigin=anonymous: FAIL (Chrome: FAIL, Safari: FAIL)
    • Used preload: as=script, crossorigin=use-credentials: FAIL (Chrome: FAIL, Safari: FAIL)
    • Used preload: as=style, no crossorigin: FAIL (Chrome: FAIL, Safari: FAIL)
    • Used preload: as=style, crossorigin=anonymous: FAIL (Chrome: FAIL, Safari: FAIL)
    • Used preload: as=style, crossorigin=use-credentials: FAIL (Chrome: FAIL, Safari: FAIL)
    • Used preload: as=fetch, crossorigin=anonymous: FAIL (Chrome: FAIL, Safari: FAIL)
    • Used preload: as=fetch, crossorigin=use-credentials: FAIL (Chrome: FAIL, Safari: FAIL)
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 152 Branch
You need to log in before you can comment on or make changes to this bug.