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

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

Issue 2702503002: Block renderer-initiated main frame navigations to data URLs (Closed)
Patch Set: 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 document.getElementById('link').click(); 12 document.getElementById('link').click();
13 }; 13 };
14 </script> 14 </script>
15 </head> 15 </head>
16 <body style="padding: 0; margin: 0;"> 16 <body style="padding: 0; margin: 0;">
17 <a id="link" href="data:text/html,<html><body>Noreferrer guest</body></html>" 17 <a id="link" href="about:blank"
18 rel="noreferrer" target="_blank">Link</a> 18 rel="noreferrer" target="_blank">Noreferrer guest link</a>
19 </body> 19 </body>
20 </html> 20 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698