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

Unified Diff: chrome/test/data/extensions/api_test/extension_resource_request_policy/iframe_navigate.html

Issue 2007133004: Disallow navigation to documents not explicitly listed as web accessible. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix up subframe cases. Created 4 years, 7 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: chrome/test/data/extensions/api_test/extension_resource_request_policy/iframe_navigate.html
diff --git a/chrome/test/data/extensions/api_test/extension_resource_request_policy/iframe_navigate.html b/chrome/test/data/extensions/api_test/extension_resource_request_policy/iframe_navigate.html
new file mode 100644
index 0000000000000000000000000000000000000000..72ac4286e01a96eec0fb4f435b9f0b0d6144e3c7
--- /dev/null
+++ b/chrome/test/data/extensions/api_test/extension_resource_request_policy/iframe_navigate.html
@@ -0,0 +1,12 @@
+<html>
+<body>
+<iframe id="myframe" src="chrome-extension://kegmjfcnjamahdnldjmlpachmpielcdk/public.html"></iframe>
+<script>
+function navigateFrameNow() {
+ var frame = document.getElementById("myframe");
+ myframe.src =
+ "chrome-extension://kegmjfcnjamahdnldjmlpachmpielcdk/private.html";
+}
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698