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

Unified Diff: LayoutTests/http/tests/security/suborigins/crossorigin/suborigin-cross-origin-script-window-onerror-no-cors.php

Issue 1180923003: Add window access checks for Suborigins (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix tests on Windows Created 5 years, 6 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/suborigins/crossorigin/suborigin-cross-origin-script-window-onerror-no-cors.php
diff --git a/LayoutTests/http/tests/security/script-onerror-crossorigin-cors.html b/LayoutTests/http/tests/security/suborigins/crossorigin/suborigin-cross-origin-script-window-onerror-no-cors.php
similarity index 86%
copy from LayoutTests/http/tests/security/script-onerror-crossorigin-cors.html
copy to LayoutTests/http/tests/security/suborigins/crossorigin/suborigin-cross-origin-script-window-onerror-no-cors.php
index 6bca94bb0ca3fb2e3432b8bcc47e828eecd615cf..8aaa76e78f58571722c04ceb7de00c8d1c1afd04 100644
--- a/LayoutTests/http/tests/security/script-onerror-crossorigin-cors.html
+++ b/LayoutTests/http/tests/security/suborigins/crossorigin/suborigin-cross-origin-script-window-onerror-no-cors.php
@@ -1,3 +1,6 @@
+<?php
+ header("Content-Security-Policy: suborigin foobar");
+?>
<!DOCTYPE html>
<head>
</head>
@@ -21,6 +24,6 @@
finishJSTest();
}
</script>
- <script crossorigin="anonymous" src="http://localhost:8000/security/resources/cors-script.php?fail=true&cors=true"></script>
+ <script src="/security/resources/cors-script.php?fail=true&cors=false"></script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698