Bug 1340654 P2 Test that nested referrer policy from an importScripts() has no effect. r=baku

This commit is contained in:
Ben Kelly 2017-02-23 10:54:43 -05:00
Родитель e070aa7b47
Коммит d84237257b
6 изменённых файлов: 35 добавлений и 3 удалений

Просмотреть файл

@ -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": [

Просмотреть файл

@ -0,0 +1 @@
// empty, but referrer-policy set on this file

Просмотреть файл

@ -0,0 +1 @@
Referrer-Policy: no-referrer

Просмотреть файл

@ -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]}}/";

Просмотреть файл

@ -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]}}/";

Просмотреть файл

@ -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;