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

Unified Diff: LayoutTests/http/tests/security/contentSecurityPolicy/resources/worker.php

Issue 1117203002: Enforce referrer policies for workers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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/contentSecurityPolicy/resources/worker.php
diff --git a/LayoutTests/http/tests/security/contentSecurityPolicy/resources/worker.php b/LayoutTests/http/tests/security/contentSecurityPolicy/resources/worker.php
index 5ea32c878bff1c3b2c6fc8cb478c0b979e275bc6..a090d783b36d3b03a6d9af8b509f248fbf76af07 100644
--- a/LayoutTests/http/tests/security/contentSecurityPolicy/resources/worker.php
+++ b/LayoutTests/http/tests/security/contentSecurityPolicy/resources/worker.php
@@ -81,5 +81,16 @@ postMessage(id === 0 ? "setTimeout blocked" : "setTimeout allowed");
alert('PASS');
<?php
+} else if ($_GET["type"] == "report-referrer") {
+?>
+
+var xhr = new XMLHttpRequest;
Mike West 2015/05/01 14:34:29 Tiny tiny nit: It would be nice for our tests to s
estark 2015/05/01 18:19:55 Acknowledged.
+xhr.open("GET", "http://127.0.0.1:8000/security/resources/echo-referrer-header.php", true);
+xhr.onload = function () {
+ postMessage(this.responseText);
+};
+xhr.send();
+
+<?php
}
?>
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/referrer-policy-worker-has-referrer.html » ('j') | Source/core/dom/Document.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698