-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This CL adds more web-platform-tests for the `Referer` on worklet descendant requests. This CL introduces tests where we fetch a same-origin descendant script from a cross-origin worklet script served with varying referrer policies. The tests are similar to those introduced in crrev.com/c/1809205 for module scripts, and will pass once crrev.com/c/1808663 is merged. R=ikilpatrick@chromium.org, kouhei@chromium.org Bug: 786862,1004083 Change-Id: I4425be4264424b52e4ec307513a404541869f2a1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1813122 Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org> Commit-Queue: Dominic Farolino <dom@chromium.org> Cr-Commit-Position: refs/heads/master@{#699351}
- Loading branch information
1 parent
7b3ea48
commit 98c8947
Showing
4 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
...ts/resources/import-same-origin-referrer-checker-worklet-script-from-remote-origin.sub.js
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// Forward GET parameters to the server. | ||
import '{{GET[requestor_origin]}}/worklets/resources/referrer-checker.py?referrer_policy={{GET[referrer_policy]}}&expected_referrer={{GET[expected_referrer]}}'; |
1 change: 1 addition & 0 deletions
1
...rces/import-same-origin-referrer-checker-worklet-script-from-remote-origin.sub.js.headers
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Access-Control-Allow-Origin: * |
This file contains 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
This file contains 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