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

Unified Diff: extensions/test/data/web_view/apitest/guest_data_url.html

Issue 2787123005: Block data URL navigations with RenderFrameImpl::DecidePolicyForNavigation (Closed)
Patch Set: Attempt another fix 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 side-by-side diff with in-line comments
Download patch
Index: extensions/test/data/web_view/apitest/guest_data_url.html
diff --git a/extensions/test/data/web_view/apitest/guest_data_url.html b/extensions/test/data/web_view/apitest/guest_data_url.html
new file mode 100644
index 0000000000000000000000000000000000000000..b7a228274f989beb40cfd5de33ec0cd6708e6bef
--- /dev/null
+++ b/extensions/test/data/web_view/apitest/guest_data_url.html
@@ -0,0 +1,17 @@
+<!doctype html>
+<!--
+ * Copyright (c) 2017 The Chromium Authors. All rights reserved. Use of this
+ * source code is governed by a BSD-style license that can be found in the
+ * LICENSE file.
+-->
+<html>
+<head>
+ <title>A guest that opens a new window.</title>
+ <script type="text/javascript">
+ window.location.href =
+ "data:text/html,<html><body>Initial dummy guest</body></html>";
+ </script>
+</head>
+<body style="padding: 0; margin: 0;">
+</body>
+</html>
« no previous file with comments | « extensions/browser/guest_view/web_view/web_view_apitest.cc ('k') | extensions/test/data/web_view/apitest/main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698