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

Unified Diff: LayoutTests/http/tests/security/javascriptURL/javascriptURL-execution-context-frame-location-htmldom-uncaught.html

Issue 220563002: Remove HTMLFrameElement.location (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix tests Created 6 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: LayoutTests/http/tests/security/javascriptURL/javascriptURL-execution-context-frame-location-htmldom-uncaught.html
diff --git a/LayoutTests/http/tests/security/javascriptURL/javascriptURL-execution-context-frame-location-htmldom-uncaught.html b/LayoutTests/http/tests/security/javascriptURL/javascriptURL-execution-context-frame-location-htmldom-uncaught.html
deleted file mode 100644
index 52bf7417ff72bc7ae80615bc0721235f8c76ee30..0000000000000000000000000000000000000000
--- a/LayoutTests/http/tests/security/javascriptURL/javascriptURL-execution-context-frame-location-htmldom-uncaught.html
+++ /dev/null
@@ -1,39 +0,0 @@
-<html>
-<head>
- <script>
- if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.dumpChildFramesAsText();
- testRunner.waitUntilDone();
- }
-
- window.addEventListener('message', function() {
- runTest();
- if (window.testRunner)
- testRunner.notifyDone();
- });
-
- window.onerror = function (msg) {
- var jsErrorMessage = 'Uncaught SecurityError: Failed to set the \'location\' property on \'HTMLFrameElement\': Blocked a frame with origin "http://127.0.0.1:8000" from accessing a cross-origin frame.';
- if (msg == jsErrorMessage)
- console.log("PASS: Exception was '" + msg + "'.");
- else
- console.log("FAIL: Exception should have been '" + jsErrorMessage + "', was '" + msg + "'.");
-
- if (window.testRunner)
- setTimeout(testRunner.notifyDone.bind(testRunner), 0);
-
- return false; // Don't handle the exception to ensure it shows up in the console.
- };
-
- function runTest() {
- var frame = document.getElementById('aFrame');
- frame.location = 'javascript:"FAIL: this should not have been loaded."';
- }
- </script>
-</head>
-<frameset rows="10%,*">
- <frame id='main' name='main' src="data:text/html,<p>This test passes as long as the onerror handler logs PASS to the console, and the uncaught exception reported to the console has unsanitized detail.</p>">
- <frame id='aFrame' name="aFrame" src='http://localhost:8000/security/resources/cross-frame-iframe.html'>
-</frameset>
-</html>

Powered by Google App Engine
This is Rietveld 408576698