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

Unified Diff: LayoutTests/http/tests/security/javascriptURL/resources/foreign-domain-javascript-url-accessee-opened-frame.html

Issue 494343003: Eliminate globalFlag usage from http security layout tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: consistify Created 6 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/javascriptURL/resources/foreign-domain-javascript-url-accessee-opened-frame.html
diff --git a/LayoutTests/http/tests/security/javascriptURL/resources/foreign-domain-javascript-url-accessee-opened-frame.html b/LayoutTests/http/tests/security/javascriptURL/resources/foreign-domain-javascript-url-accessee-opened-frame.html
index 4a8fdd9f457a2a392d0dd1574ed5ca621b8583dc..a48a870051d537021b33c385dde397c9261879d0 100644
--- a/LayoutTests/http/tests/security/javascriptURL/resources/foreign-domain-javascript-url-accessee-opened-frame.html
+++ b/LayoutTests/http/tests/security/javascriptURL/resources/foreign-domain-javascript-url-accessee-opened-frame.html
@@ -4,15 +4,6 @@
<iframe id="aFrame"></iframe>
<script>
var url = "javascript:\"<html>"
- + "<head>"
- + "<scr" + "ipt>"
- + "window.onload = function()"
- + "{"
- + "if (window.testRunner)"
- + "testRunner.globalFlag = true;"
- + "}"
- + "</scr" + "ipt>"
- + "</head>"
+ "<body>"
+ "<p id='accessMe'>PASS: Access from the main frame was denied!</p>"
+ "<p>Inner-inner iframe. This iframe (which is javascript: URL and whose parent is on a foreign domain) is the frame that the"
@@ -21,6 +12,7 @@
+ "</html>\"";
var frame = document.getElementById('aFrame');
+ frame.onload = function () { window.opener.postMessage('run test', '*'); };
frame.src = url;
</script>
</body>

Powered by Google App Engine
This is Rietveld 408576698