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

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: fix layout test indentation 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/referrer-policy-worker-has-referrer.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
+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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698