Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WPT] Prefetch + ServiceWorker: modifying requests #51676

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

This adds tests for cases where speculation rules prefetch requests are
intercepted and modified by ServiceWorker fetch handler.

This should work similarly to non-modifying cases, except for
Sec-Purpose header is dropped per spec.

Even without ServiceWorker support,
assert_prefetched_without_sec_purpose() doesn't fail. Corresponding
tests will fail (without ServiceWorker support) after
https://chromium-review.googlesource.com/c/chromium/src/+/6364354 by
checking if the requests before modification has the Sec-Purpose header.

Bug: 40947546, 404573971
Change-Id: I0813039dad140f493366d66ae46f54d6ae307a4e

Reviewed-on: https://chromium-review.googlesource.com/6180512
WPT-Export-Revision: 15c2772e519c1a4c76f41ccd839cfaae86069860

This adds tests for cases where speculation rules prefetch requests are
intercepted and modified by ServiceWorker fetch handler.

This should work similarly to non-modifying cases, except for
`Sec-Purpose` header is dropped per spec.

Even without ServiceWorker support,
`assert_prefetched_without_sec_purpose()` doesn't fail. Corresponding
tests will fail (without ServiceWorker support) after
https://chromium-review.googlesource.com/c/chromium/src/+/6364354 by
checking if the requests before modification has the Sec-Purpose header.

Bug: 40947546, 404573971
Change-Id: I0813039dad140f493366d66ae46f54d6ae307a4e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants