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

Unified Diff: LayoutTests/http/tests/security/suborigins/crossorigin/suborigin-cross-origin-script-window-onerror-redirected.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-redirected.php
diff --git a/LayoutTests/http/tests/security/suborigins/crossorigin/suborigin-cross-origin-script-window-onerror-redirected.php b/LayoutTests/http/tests/security/suborigins/crossorigin/suborigin-cross-origin-script-window-onerror-redirected.php
deleted file mode 100644
index c25ed08751a4d2fc84a2afc4db9ca4de4fc910f9..0000000000000000000000000000000000000000
--- a/LayoutTests/http/tests/security/suborigins/crossorigin/suborigin-cross-origin-script-window-onerror-redirected.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-header("Content-Security-Policy: suborigin foobar");
-?>
-<html>
-<body>
-<p>
-Test that window.onerror won't reveal any potentially sensitive script content if the latter is loaded from a different subdomain after a redirect. The test passes if you don't see any data from the linked resource.
-</p>
-<div id="result"></div>
-<script>
-if (window.testRunner) {
- testRunner.waitUntilDone();
- testRunner.dumpAsText();
-}
-
-window.onerror = function(message, url, line) {
- document.getElementById("result").textContent = "window.onerror message: " + message + " at " + url + ": " + line;
- if (window.testRunner)
- testRunner.notifyDone();
- return true;
-}
-</script>
-<script src="/security/resources/redir.php?url=http://127.0.0.1:8000/security/resources/cross-origin-script.txt">
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698