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

Unified Diff: LayoutTests/http/tests/security/aboutBlank/xss-DENIED-set-opener-expected.txt

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/aboutBlank/xss-DENIED-set-opener-expected.txt
diff --git a/LayoutTests/http/tests/security/aboutBlank/xss-DENIED-set-opener-expected.txt b/LayoutTests/http/tests/security/aboutBlank/xss-DENIED-set-opener-expected.txt
index 018e4434e129db204e94308a4c040d77101927b5..d90f73b88a22c6dd04fa2acda37d3fd2be863214 100644
--- a/LayoutTests/http/tests/security/aboutBlank/xss-DENIED-set-opener-expected.txt
+++ b/LayoutTests/http/tests/security/aboutBlank/xss-DENIED-set-opener-expected.txt
@@ -4,7 +4,7 @@ Code injected into window:
<script>function write(target, message) { target.document.body.innerHTML = message; }
setTimeout(function() {write(window.opener.top.frames[0], 'FAIL: XSS was allowed.');}, 100);
setTimeout(function() {write(window.opener.top.frames[1], 'SUCCESS: Window remained in original SecurityOrigin.');}, 200);
-setTimeout(function() { if (window.testRunner) testRunner.globalFlag = true; }, 300);</script>
+setTimeout(function() { window.opener.top.postMessage('done', '*'); }, 300);</script>
PASS: 'window.open' called on another frame threw: SecurityError: Failed to execute 'open' on 'Window': Blocked a frame with origin "http://127.0.0.1:8000" from accessing a cross-origin frame.

Powered by Google App Engine
This is Rietveld 408576698