[wpt-sync] Sync PR 59321 - Add performance.speculations.preloads for speculation measurement
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox152 fixed)
| 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}
| Assignee | ||
Comment 1•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=734142ec68674c791aeefa8a21aeb3c6d59d235a
| Assignee | ||
Comment 2•1 month ago
|
||
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)
- performance.getSpeculations() basic interface:
- /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)
- Used preload: as=script, no crossorigin:
https://hg.mozilla.org/mozilla-central/rev/fe7c259d724c
https://hg.mozilla.org/mozilla-central/rev/86b0ac960918
Description
•