Index: third_party/WebKit/LayoutTests/http/tests/security/popup-allowed-by-sandbox-is-sandboxed-control.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/popup-allowed-by-sandbox-is-sandboxed-control.html b/third_party/WebKit/LayoutTests/http/tests/security/popup-allowed-by-sandbox-is-sandboxed-control.html |
index 406e2b6d9860689a6699dd0dda630bf43ba59831..4e6b379fff658373fa2895c055dd7a12d673b981 100644 |
--- a/third_party/WebKit/LayoutTests/http/tests/security/popup-allowed-by-sandbox-is-sandboxed-control.html |
+++ b/third_party/WebKit/LayoutTests/http/tests/security/popup-allowed-by-sandbox-is-sandboxed-control.html |
@@ -8,9 +8,14 @@ if (window.testRunner) { |
</script> |
<p>To run this test outside of DumpRenderTree, please disable your popup blocker!</p> |
<p>If you change this test, please be sure to change popup-allowed-by-sandbox-is-sandboxed.html as well!</p> |
-<iframe sandbox="allow-scripts allow-popups allow-forms" |
+<iframe sandbox="allow-scripts allow-popups allow-forms allow-same-origin" |
src="data:text/html, |
<script> |
- var win = window.open('data:text/html,<form action=javascript:console.log(/PASS/) ><input type=submit></form><script>document.forms[0].submit(); if (window.testRunner) testRunner.notifyDone();<\/script>', '_blank'); |
+ var win = window.open('about:blank', '_blank'); |
+ win.document.write( |
+ '<form action=javascript:console.log(/PASS/) ><input type=submit></form>' + |
+ '<script>document.forms[0].submit();' + |
+ 'if (window.testRunner)testRunner.notifyDone();' + |
+ '</' + 'script>'); |
</script>" |
></iframe> |