Index: LayoutTests/http/tests/security/referrer-policy-worker-has-referrer.html |
diff --git a/LayoutTests/http/tests/security/referrer-policy-worker-has-referrer.html b/LayoutTests/http/tests/security/referrer-policy-worker-has-referrer.html |
index 0000738ef97442b55df064eb248e27db9fe56b80..85c1169c0d392c98ce1d646c76b7f841b0083e63 100644 |
--- a/LayoutTests/http/tests/security/referrer-policy-worker-has-referrer.html |
+++ b/LayoutTests/http/tests/security/referrer-policy-worker-has-referrer.html |
@@ -15,6 +15,16 @@ |
this.done(); |
}); |
}, "Worker with no referrer policy does not inherit document's policy"); |
+ |
+ async_test(function () { |
+ var workerUrl = 'http://127.0.0.1:8000/security/contentSecurityPolicy/resources/worker.php?type=shared-report-referrer'; |
+ var worker = new SharedWorker(workerUrl); |
+ worker.port.onmessage = this.step_func(function (event) { |
+ assert_equals(workerUrl, event.data); |
+ this.done(); |
+ }); |
+ worker.port.start(); |
+ }, "Shared worker with no referrer policy does not inherit document's policy"); |
</script> |
</body> |
</html> |