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

Side by Side Diff: chrome/test/data/extensions/platform_apps/web_view/shim/guest.html

Issue 2702503002: Block renderer-initiated main frame navigations to data URLs (Closed)
Patch Set: Re-block data to data navigations, rebase, address nasko comments 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 <!-- 2 <!--
3 * Copyright (c) 2013 The Chromium Authors. All rights reserved. Use of this 3 * Copyright (c) 2013 The Chromium Authors. All rights reserved. Use of this
4 * source code is governed by a BSD-style license that can be found in the 4 * source code is governed by a BSD-style license that can be found in the
5 * LICENSE file. 5 * LICENSE file.
6 --> 6 -->
7 <html> 7 <html>
8 <head> 8 <head>
9 <title>A guest that opens a new window.</title> 9 <title>A guest that opens a new window.</title>
10 <script type="text/javascript"> 10 <script type="text/javascript">
11 window.onload = function() { 11 window.onload = function() {
12 window.open( 12 window.open('about:blank');
13 'data:text/html,<html><body>Initial dummy guest</body></html>');
14 }; 13 };
15 </script> 14 </script>
16 </head> 15 </head>
17 <body style="padding: 0; margin: 0;"> 16 <body style="padding: 0; margin: 0;">
18 </body> 17 </body>
19 </html> 18 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698