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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/popup-allowed-by-sandbox-can-navigate.html

Issue 2399713002: window.close() should work from a sandboxed iframe if iframe is opener (Closed)
Patch Set: +close() test Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/security/popup-allowed-by-sandbox-can-navigate-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <script> 1 <script>
2 if (window.testRunner) { 2 if (window.testRunner) {
3 testRunner.dumpAsText(); 3 testRunner.dumpAsText();
4 testRunner.waitUntilDone(); 4 testRunner.waitUntilDone();
5 testRunner.setCanOpenWindows(true); 5 testRunner.setCanOpenWindows(true);
6 testRunner.setCloseRemainingWindowsWhenComplete(true); 6 testRunner.setCloseRemainingWindowsWhenComplete(true);
7 } 7 }
8 </script> 8 </script>
9 <p>To run this test outside of DumpRenderTree, please disable your popup blocker !</p> 9 <p>To run this test outside of DumpRenderTree, please disable your popup blocker !</p>
10 <p>This test passes if it doesnt hang.</p>
10 <iframe sandbox="allow-scripts allow-popups" 11 <iframe sandbox="allow-scripts allow-popups"
11 src="data:text/html, 12 src="data:text/html,
12 <script> 13 <script>
13 var win = window.open('data:text/html,<script>if (window.testRunner) test Runner.notifyDone();<\/script>', '_blank'); 14 var win = window.open('data:text/html,', '_blank');
14 console.log(win ? 'PASS' : 'FAIL'); 15 win.location = 'http://127.0.0.1:8000/navigation/resources/pass-and-notif y-done.html';
15 </script>" 16 </script>"
16 ></iframe> 17 ></iframe>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/security/popup-allowed-by-sandbox-can-navigate-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698