Speculation Rules: implement Navigation Timing's deliveryType#52200
Merged
webkit-commit-queue merged 1 commit intoWebKit:mainfrom Nov 25, 2025
Merged
Speculation Rules: implement Navigation Timing's deliveryType#52200webkit-commit-queue merged 1 commit intoWebKit:mainfrom
webkit-commit-queue merged 1 commit intoWebKit:mainfrom
Conversation
Collaborator
|
EWS run on previous version of this PR (hash 34781c5) Details |
34781c5 to
de3f9c2
Compare
Collaborator
|
EWS run on previous version of this PR (hash de3f9c2) Details |
de3f9c2 to
d04e70a
Compare
Collaborator
|
EWS run on previous version of this PR (hash d04e70a) Details |
d04e70a to
f770d31
Compare
Collaborator
|
EWS run on previous version of this PR (hash f770d31) Details |
achristensen07
requested changes
Nov 5, 2025
f770d31 to
63cfeff
Compare
Collaborator
|
EWS run on previous version of this PR (hash 63cfeff) Details
|
63cfeff to
782d1a2
Compare
Collaborator
|
EWS run on previous version of this PR (hash 782d1a2) Details |
achristensen07
approved these changes
Nov 6, 2025
782d1a2 to
50c492c
Compare
Collaborator
|
EWS run on current version of this PR (hash 50c492c) Details |
Contributor
Author
|
Merging as the test failures seem random and unrelated |
https://bugs.webkit.org/show_bug.cgi?id=300586 Reviewed by Alex Christensen. This PR exposes the `deliveryType` attribute on Resource Timing, with an empty string value in most cases. It then sets that value to "navigational-prefetch" for prefetched documents, exposed in their navigation timing entries. No new tests, but existing test expectations progress. * LayoutTests/imported/w3c/web-platform-tests/resource-timing/idlharness.any-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/resource-timing/idlharness.any.worker-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/speculation-rules/prefetch/navigation-timing-delivery-type.https_prefetch=false&bypass_cache=false-expected.txt: Progression. * LayoutTests/imported/w3c/web-platform-tests/speculation-rules/prefetch/navigation-timing-delivery-type.https_prefetch=false&bypass_cache=true-expected.txt: Progression. * LayoutTests/imported/w3c/web-platform-tests/speculation-rules/prefetch/navigation-timing-delivery-type.https_prefetch=true&bypass_cache=false-expected.txt: Progression. * LayoutTests/imported/w3c/web-platform-tests/speculation-rules/prefetch/navigation-timing-delivery-type.https_prefetch=true&bypass_cache=true-expected.txt: Progression. * LayoutTests/imported/w3c/web-platform-tests/speculation-rules/prefetch/prefetch-uses-cache.sub.https_cross-site-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/speculation-rules/prefetch/prefetch-uses-cache.sub.https_same-site-expected.txt: * Source/WebCore/loader/DocumentLoader.cpp: (WebCore::DocumentLoader::notifyFinished): Set the `fromPrefetch` parameter on metrics that come from a prefetched resource. (WebCore::DocumentLoader::commitData): Set the `fromPrefetch` parameter on metrics where there's an in-flight prefetch with the same URL. * Source/WebCore/loader/DocumentPrefetcher.cpp: (WebCore::DocumentPrefetcher::wasPrefetched const): Returns true if there's an in-flight prefetch with that URL. (WebCore::DocumentPrefetcher::takePrefetchedNetworkLoadMetrics): * Source/WebCore/loader/DocumentPrefetcher.h: * Source/WebCore/loader/ResourceTiming.h: (WebCore::ResourceTiming::deliveryType const): Getter. * Source/WebCore/page/PerformanceResourceTiming.h: (WebCore::PerformanceResourceTiming::deliveryType const): (WebCore::PerformanceResourceTiming::resourceTiming): * Source/WebCore/page/PerformanceResourceTiming.idl: Add the deliveryType attribute. * Source/WebCore/platform/network/NetworkLoadMetrics.cpp: (WebCore::NetworkLoadMetrics::NetworkLoadMetrics): Initialize fromPrefetch. (WebCore::NetworkLoadMetrics::isolatedCopy const): Copy fromPrefetch. * Source/WebCore/platform/network/NetworkLoadMetrics.h: * Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in: Canonical link: https://commits.webkit.org/303527@main
50c492c to
f009b61
Compare
Collaborator
|
Committed 303527@main (f009b61): https://commits.webkit.org/303527@main Reviewed commits have been landed. Closing PR #52200 and removing active labels. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
f009b61
50c492c
🧪 ios-wk2🧪 ios-wk2-wpt