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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLAnchorElement/anchor-no-multiple-windows.html

Issue 2702503002: Block renderer-initiated main frame navigations to data URLs (Closed)
Patch Set: Fix Android PDF tests where PDFs should be downloaded Created 3 years, 8 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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script> 4 <script>
5 if (window.testRunner) { 5 if (window.testRunner) {
6 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
7 testRunner.setCanOpenWindows(true); 7 testRunner.setCanOpenWindows(true);
8 testRunner.overridePreference('WebKitSupportsMultipleWindows', false); 8 testRunner.overridePreference('WebKitSupportsMultipleWindows', false);
9 testRunner.waitUntilDone(); 9 testRunner.waitUntilDone();
10 } 10 }
(...skipping 18 matching lines...) Expand all
29 document.writeln('PASS: Popup opened in the same window'); 29 document.writeln('PASS: Popup opened in the same window');
30 testRunner.notifyDone(); 30 testRunner.notifyDone();
31 } 31 }
32 } 32 }
33 33
34 window.addEventListener('load', runTest, true); 34 window.addEventListener('load', runTest, true);
35 </script> 35 </script>
36 </head> 36 </head>
37 <body> 37 <body>
38 You need popups to be enabled to run this test. 38 You need popups to be enabled to run this test.
39 <a id="link" target="_blank" href="data:text/html;charset=utf-8,<html><body>The test passes if this page opens in the same window</body></html>">Click me!</a> 39 <a id="link" target="_blank" href="resources/popup.html">Click me!</a>
40 </body> 40 </body>
41 </html> 41 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698