| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
KURL url = resource->Url();Yoav Weiss (@Shopify)const KURL&
Done
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
await new Promise(resolve => setTimeout(resolve, 200));To avoid flaky test, would you make the resource be served via custom handler so we can ensure server received the request?
Something similar to
third_party/blink/web_tests/external/wpt/speculation-rules/prefetch/resources/prefetch.py to put data on server stash and we continuously fetch the stash until it says the server has received the req.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
To avoid flaky test, would you make the resource be served via custom handler so we can ensure server received the request?
Something similar to
third_party/blink/web_tests/external/wpt/speculation-rules/prefetch/resources/prefetch.py to put data on server stash and we continuously fetch the stash until it says the server has received the req.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
protected:Would you elaborate on why this needs change?
await new Promise(resolve => setTimeout(resolve, 200));Yoav Weiss (@Shopify)To avoid flaky test, would you make the resource be served via custom handler so we can ensure server received the request?
Something similar to
third_party/blink/web_tests/external/wpt/speculation-rules/prefetch/resources/prefetch.py to put data on server stash and we continuously fetch the stash until it says the server has received the req.
Done
Sorry I should have asked if we really need this first.
if we are waiting on onload, would it be enough?
assert_true(result.speculations !== null && result.speculations !== undefined,nit: split to two assert_not_equals
const preloads = result.speculations.preloads;should we check its contents?
const preloads = result.speculations.preloads;Can we match `preloads` exactly against expected array?
I believe we expect it to have the precise set of elements.
assert_true(result.speculations !== null,assert_not_equals
assert_true(unusedPreload !== undefined,assert_not_equals
<link rel="preload" href="unused-script.js" as="script">nonexistent?
type: 'pagehide',Would you elaborate why we need to pass this value?
persisted: event.persistedWould you elaborate why we need to pass this value?
if (parent && parent !== window && parent.pagehideCallback) {what is `parent !== window` condition needed for?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Would you elaborate on why this needs change?
It doesn't. Removed
assert_true(result.speculations !== null && result.speculations !== undefined,nit: split to two assert_not_equals
Done
should we check its contents?
Sure, but it's empty in this test
Can we match `preloads` exactly against expected array?
I believe we expect it to have the precise set of elements.
Done
assert_true(result.speculations !== null,Yoav Weiss (@Shopify)assert_not_equals
Done
assert_true(unusedPreload !== undefined,Yoav Weiss (@Shopify)assert_not_equals
Done
Would you elaborate why we need to pass this value?
We don't. removed!
Would you elaborate why we need to pass this value?
We don't. Removed!
<!DOCTYPE html>Yoav Weiss (@Shopify)Is this file used?
No, removed!
if (parent && parent !== window && parent.pagehideCallback) {what is `parent !== window` condition needed for?
To only report when loaded in an iframe. But I guess it's not strictly needed, so removed.
<!DOCTYPE html>Yoav Weiss (@Shopify)Is this file used?
Nope. Removed.
<link rel="preload" href="unused-script.js" as="script">Yoav Weiss (@Shopify)nonexistent?
Removed the file
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
await waitForPreloadRequest(uuid);ditto
Can you elaborate what you meant here?
bool persisted = (persistence == kPageTransitionEventPersisted);Would you add a TODO comment we should plumb enum `PageTransitionEventPersistence` through PageHideEvent + PageTransitionEvent? I don't see any reason not to...
// TODO(yoav): Currently only URLs are passed for early hintsTODO(crbug/...)
await waitForPreloadRequest(uuid);Yoav Weiss (@Shopify)ditto
Can you elaborate what you meant here?
I think I'm good with this one.
await new Promise(resolve => setTimeout(resolve, 200));If we are using the script and waiting for the onload, do we need this wait?
promise_test(async t => {Sorry I'm still quite confused. The file name is "used-preload" but this is testing "unused preload"?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Overall I'm still quite confused with the WPTs - some are http tests some are https tests. Would you elaborate why? Can we clarify the organization of the tests? `pagehide-speculations.tentative` seem to contain interface tests. I'd like to confirm if the tests are mostly orthogonal to each other
Overall I'm still quite confused with the WPTs - some are http tests some are https tests. Would you elaborate why? Can we clarify the organization of the tests? `pagehide-speculations.tentative` seem to contain interface tests. I'd like to confirm if the tests are mostly orthogonal to each other
The unused preloads test is using UUID (for the preload stash) and hence is required to be https. The rest of the tests don't need that.
I removed the interface test, as it's covered elsewhere.
bool persisted = (persistence == kPageTransitionEventPersisted);Would you add a TODO comment we should plumb enum `PageTransitionEventPersistence` through PageHideEvent + PageTransitionEvent? I don't see any reason not to...
Plumbed it
// TODO(yoav): Currently only URLs are passed for early hintsYoav Weiss (@Shopify)TODO(crbug/...)
Done
If we are using the script and waiting for the onload, do we need this wait?
removed
Sorry I'm still quite confused. The file name is "used-preload" but this is testing "unused preload"?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Exportable changes to web-platform-tests were detected in this CL and a pull request in the upstream repo has been made: https://github.com/web-platform-tests/wpt/pull/58615.
When this CL lands, the bot will automatically merge the PR on GitHub if the required GitHub checks pass; otherwise, ecosystem-infra@ team will triage the failures and may contact you.
WPT Export docs:
https://chromium.googlesource.com/chromium/src/+/main/docs/testing/web_platform_tests.md#Automatic-export-process
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +2 |
Speculative load measurement API - preload tracking
This CL implements the preload tracking portion of the Speculative Load
Measurement API, exposing preload information on the pagehide event.
Introduces PageHideEvent (extending PageTransitionEvent) with a
SpeculationData attribute containing preload information. ResourceFetcher
tracks all preloads and their usage state, which is collected at
pagehide time.
The feature is gated behind the PageHideSpeculations runtime flag.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
The exported PR, https://github.com/web-platform-tests/wpt/pull/58615, has failed the following check(s) on GitHub:
wpt-firefox-nightly-stability (https://github.com/web-platform-tests/wpt/runs/67768599640)
These failures will block the export. They may represent new or existing problems; please take a look at the output and see if it can be fixed. Unresolved failures will be looked at by the Ecosystem-Infra sheriff after this CL has been landed in Chromium; if you need earlier help please contact blin...@chromium.org.
Any suggestions to improve this service are welcome; crbug.com/1027618.
Gerrit CL SHA: Latest
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
The WPT PR for this CL has been merged upstream! https://github.com/web-platform-tests/wpt/pull/58615
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |