diff --git a/testing/web-platform/meta/MANIFEST.json b/testing/web-platform/meta/MANIFEST.json index 177171d31a46..4ef43752cb42 100644 --- a/testing/web-platform/meta/MANIFEST.json +++ b/testing/web-platform/meta/MANIFEST.json @@ -43419,6 +43419,16 @@ {} ] ], + "fetch/api/policies/nested-policy.js": [ + [ + {} + ] + ], + "fetch/api/policies/nested-policy.js.headers": [ + [ + {} + ] + ], "fetch/api/policies/referrer-no-referrer.html.headers": [ [ {} @@ -163674,6 +163684,14 @@ "94dc6f63015b0835eb2a8c1892636bafeb1dfee7", "support" ], + "fetch/api/policies/nested-policy.js": [ + "57cfc2060102695b601209e4927861aaee377c4e", + "support" + ], + "fetch/api/policies/nested-policy.js.headers": [ + "fab90d344cbb78bad6445288c418b87736a830ae", + "support" + ], "fetch/api/policies/referrer-no-referrer-worker.html": [ "cc9274c1b182a487dbe945e6d8754a671d78e3c4", "testharness" @@ -163707,7 +163725,7 @@ "support" ], "fetch/api/policies/referrer-origin-when-cross-origin.js": [ - "e750c643dda40176e230d39e38057d4d2bda4fcf", + "f6b25aad46ba48422fab737582e82179666b5233", "support" ], "fetch/api/policies/referrer-origin-when-cross-origin.js.headers": [ @@ -163727,7 +163745,7 @@ "support" ], "fetch/api/policies/referrer-origin.js": [ - "368af4830da8fcd341ffb513b8c6c2c2bcfab3d9", + "8d8b58a4d5046e55e6bd97289cf6e515614e9577", "support" ], "fetch/api/policies/referrer-origin.js.headers": [ @@ -163747,7 +163765,7 @@ "support" ], "fetch/api/policies/referrer-unsafe-url.js": [ - "24d042ef4e85cccf3d178f701af5664c954deaf3", + "e1881c5f3f0a7d1705a5d2eb5d3381d8788374d8", "support" ], "fetch/api/policies/referrer-unsafe-url.js.headers": [ diff --git a/testing/web-platform/tests/fetch/api/policies/nested-policy.js b/testing/web-platform/tests/fetch/api/policies/nested-policy.js new file mode 100644 index 000000000000..b0d17696c337 --- /dev/null +++ b/testing/web-platform/tests/fetch/api/policies/nested-policy.js @@ -0,0 +1 @@ +// empty, but referrer-policy set on this file diff --git a/testing/web-platform/tests/fetch/api/policies/nested-policy.js.headers b/testing/web-platform/tests/fetch/api/policies/nested-policy.js.headers new file mode 100644 index 000000000000..7ffbf17d6be5 --- /dev/null +++ b/testing/web-platform/tests/fetch/api/policies/nested-policy.js.headers @@ -0,0 +1 @@ +Referrer-Policy: no-referrer diff --git a/testing/web-platform/tests/fetch/api/policies/referrer-origin-when-cross-origin.js b/testing/web-platform/tests/fetch/api/policies/referrer-origin-when-cross-origin.js index 2baf7d12593f..b9e6b1fbe259 100644 --- a/testing/web-platform/tests/fetch/api/policies/referrer-origin-when-cross-origin.js +++ b/testing/web-platform/tests/fetch/api/policies/referrer-origin-when-cross-origin.js @@ -1,6 +1,10 @@ if (this.document === undefined) { importScripts("/resources/testharness.js"); importScripts("../resources/utils.js"); + + // A nested importScripts() with a referrer-policy should have no effect + // on overall worker policy. + importScripts("nested-policy.js"); } var referrerOrigin = "http://{{host}}:{{ports[http][0]}}/"; diff --git a/testing/web-platform/tests/fetch/api/policies/referrer-origin.js b/testing/web-platform/tests/fetch/api/policies/referrer-origin.js index de187657486d..596ff818ca34 100644 --- a/testing/web-platform/tests/fetch/api/policies/referrer-origin.js +++ b/testing/web-platform/tests/fetch/api/policies/referrer-origin.js @@ -1,6 +1,10 @@ if (this.document === undefined) { importScripts("/resources/testharness.js"); importScripts("../resources/utils.js"); + + // A nested importScripts() with a referrer-policy should have no effect + // on overall worker policy. + importScripts("nested-policy.js"); } var referrerOrigin = "http://{{host}}:{{ports[http][0]}}/"; diff --git a/testing/web-platform/tests/fetch/api/policies/referrer-unsafe-url.js b/testing/web-platform/tests/fetch/api/policies/referrer-unsafe-url.js index b593fad5aa2b..4d61172613ee 100644 --- a/testing/web-platform/tests/fetch/api/policies/referrer-unsafe-url.js +++ b/testing/web-platform/tests/fetch/api/policies/referrer-unsafe-url.js @@ -1,6 +1,10 @@ if (this.document === undefined) { importScripts("/resources/testharness.js"); importScripts("../resources/utils.js"); + + // A nested importScripts() with a referrer-policy should have no effect + // on overall worker policy. + importScripts("nested-policy.js"); } var referrerUrl = location.href;