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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-access-control.php

Issue 2651943002: Block subresource requests whose URLs include credentials. (Closed)
Patch Set: Test. Created 3 years, 9 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: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-access-control.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-access-control.php b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-access-control.php
index 758a2e6293762c48e268cf08765eecf5e4f59a23..28ca451320423273d267645663febccab8e8f5c5 100644
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-access-control.php
+++ b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-access-control.php
@@ -104,6 +104,12 @@ foreach ($_FILES as $key => $file) {
'content' => $content);
}
+if (isset($_GET['WINDOW'])) {
+ header('Content-Type: text/html');
+ echo "<!DOCTYPE html><script>window.opener.postMessage('Loaded', '*');</script>";
+ exit;
+}
+
header('Content-Type: application/json');
$arr = array('jsonpResult' => 'success',
'method' => $_SERVER['REQUEST_METHOD'],

Powered by Google App Engine
This is Rietveld 408576698