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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/loader/reload-zero-byte-plugin.html

Issue 2694903007: Add a warning for the deprecation of content-initiated data URL navigations (Closed)
Patch Set: Fix layout tests that do top-level navigations to data: URLs Created 3 years, 9 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 <iframe src="data:application/x-blink-test-plugin," id="f"></iframe>
Charlie Reis 2017/02/23 18:39:13 Interesting. I guess this is close enough that it
meacer 2017/02/23 20:47:25 I was slightly concerned too, but the plugin print
1 <script> 2 <script>
2 if (window.testRunner) { 3 if (window.testRunner) {
3 testRunner.dumpAsText(); 4 testRunner.dumpAsText();
4 testRunner.waitUntilDone(); 5 testRunner.waitUntilDone();
5 testRunner.setCanOpenWindows(true); 6 testRunner.setCanOpenWindows(true);
6 testRunner.setCloseRemainingWindowsWhenComplete(true); 7 testRunner.setCloseRemainingWindowsWhenComplete(true);
7 } 8 }
8 9
9 var win = window.open('data:application/x-blink-test-plugin,');
10 setTimeout(function() { 10 setTimeout(function() {
11 win.location.reload(); 11 document.getElementById("f").contentWindow.location.reload()
12 setTimeout(function() { 12 setTimeout(function() {
13 if (window.testRunner) 13 if (window.testRunner)
14 testRunner.notifyDone(); 14 testRunner.notifyDone();
15 }, 100); 15 }, 100);
16 }, 100); 16 }, 100);
17 </script> 17 </script>
18 This test passes if it doesn't crash. To run manually, please disable your 18 This test passes if it doesn't crash. To run manually, please disable your
19 popup blocker. 19 popup blocker.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698