| 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?