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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/Window/resources/file-origin-window-open-frame.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, 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 window.addEventListener('message', function () { 2 window.addEventListener('message', function () {
3 var exc = null; 3 var exc = null;
4 try { 4 try {
5 newWindow.document; 5 newWindow.document;
6 } catch (e) { 6 } catch (e) {
7 exc = e; 7 exc = e;
8 } 8 }
9 top.postMessage(exc ? '' + exc : null, '*'); 9 top.postMessage(exc ? '' + exc : null, '*');
10 }); 10 });
11 newWindow = window.open('data:text/html,<script>opener.postMessage("runTest","*" );</scr' + 'ipt>'); 11 newWindow = window.open('file-origin-window-open-popup.html');
12 </script> 12 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698