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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/popup-allowed-by-sandbox-is-sandboxed-control.html

Issue 2694903007: Add a warning for the deprecation of content-initiated data URL navigations (Closed)
Patch Set: creis comments Created 3 years, 10 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 unified diff | Download patch
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>If you change this test, please be sure to change popup-allowed-by-sandbox-is -sandboxed.html as well!</p> 10 <p>If you change this test, please be sure to change popup-allowed-by-sandbox-is -sandboxed.html as well!</p>
11 <iframe sandbox="allow-scripts allow-popups allow-forms" 11 <iframe sandbox="allow-scripts allow-popups allow-forms allow-same-origin"
12 src="data:text/html, 12 src="data:text/html,
13 <script> 13 <script>
14 var win = window.open('data:text/html,<form action=javascript:console.log (/PASS/) ><input type=submit></form><script>document.forms[0].submit(); if (wind ow.testRunner) testRunner.notifyDone();<\/script>', '_blank'); 14 var win = window.open('about:blank', '_blank');
15 win.document.write(
16 '<form action=javascript:console.log(/PASS/) ><input type=submit></for m>' +
17 '<script>document.forms[0].submit();' +
18 'if (window.testRunner)testRunner.notifyDone();' +
19 '</' + 'script>');
15 </script>" 20 </script>"
16 ></iframe> 21 ></iframe>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698