Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(421)

Unified Diff: LayoutTests/http/tests/security/referrer-policy-worker-has-referrer.html

Issue 1128813003: Give shared workers their own content security policies (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698