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

Unified Diff: LayoutTests/http/tests/security/script-no-crossorigin-onerror-should-be-sanitized.html

Issue 19596004: Allow sites to enable 'window.onerror' handlers for cross-domain scripts. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 7 years, 4 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/script-no-crossorigin-onerror-should-be-sanitized.html
diff --git a/LayoutTests/http/tests/security/script-no-crossorigin-onerror-should-be-sanitized.html b/LayoutTests/http/tests/security/script-no-crossorigin-onerror-should-be-sanitized.html
deleted file mode 100644
index 60137805f901cd4d919f0e37bc83516affb75471..0000000000000000000000000000000000000000
--- a/LayoutTests/http/tests/security/script-no-crossorigin-onerror-should-be-sanitized.html
+++ /dev/null
@@ -1,20 +0,0 @@
-<body>
-<script src="../../js-test-resources/js-test-pre.js"></script>
-<script>
-window.jsTestIsAsync = true;
-description("The test passes if window.onerror gets sanitized information about the script error.");
-
-window.onerror = function(msg, url, line) {
- window.msg = msg;
- window.url = url;
- window.line = line;
- shouldBeNull("msg.match(/SomeError/)");
- shouldBeEqualToString("url", "");
- shouldBe("line", "0");
- finishJSTest();
-}
-</script>
-<!-- crossorigin attribute is not set, we shouldn't get any specific info on the error. -->
-<script src="http://localhost:8000/security/resources/cors-script.php?fail=true"></script>
-<script src="../../js-test-resources/js-test-post.js"></script>
-

Powered by Google App Engine
This is Rietveld 408576698