Index: third_party/WebKit/LayoutTests/http/tests/security/popup-allowed-by-sandbox-when-allowed.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/popup-allowed-by-sandbox-when-allowed.html b/third_party/WebKit/LayoutTests/http/tests/security/popup-allowed-by-sandbox-when-allowed.html |
index 26e581024bb74474144180ea9cd9b7b1807e4792..9e0e34cd8f5dbc230b12a2135068f1fdc87c6be2 100644 |
--- a/third_party/WebKit/LayoutTests/http/tests/security/popup-allowed-by-sandbox-when-allowed.html |
+++ b/third_party/WebKit/LayoutTests/http/tests/security/popup-allowed-by-sandbox-when-allowed.html |
@@ -7,10 +7,17 @@ if (window.testRunner) { |
} |
</script> |
<p>To run this test outside of DumpRenderTree, please disable your popup blocker!</p> |
-<iframe sandbox="allow-scripts allow-popups" |
+<iframe sandbox="allow-scripts allow-popups allow-same-origin" |
src="data:text/html, |
<script> |
- var win = window.open('data:text/html,<script>if (window.testRunner) testRunner.notifyDone();<\/script>', '_blank'); |
- console.log(win ? 'PASS' : 'FAIL'); |
+ var win = window.open('about:blank', '_blank'); |
+ if (win) { |
+ console.log('PASS'); |
+ win.document.write( |
+ '<script>if (window.testRunner) testRunner.notifyDone();<\/script>'); |
+ } else { |
+ console.log('FAIL'); |
+ if (window.testRunner) testRunner.notifyDone(); |
+ } |
</script>" |
></iframe> |