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

Unified Diff: chrome/test/data/prerender/prefetch_meta_csp.html

Issue 2350813003: NoState Prefetch: CSP test (Closed)
Patch Set: filled in bug Created 4 years, 2 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/prerender/prefetch_meta_csp.html
diff --git a/chrome/test/data/prerender/prefetch_meta_csp.html b/chrome/test/data/prerender/prefetch_meta_csp.html
new file mode 100644
index 0000000000000000000000000000000000000000..4256110c4c5943054a9bb33a4b253065956a1860
--- /dev/null
+++ b/chrome/test/data/prerender/prefetch_meta_csp.html
@@ -0,0 +1,14 @@
+<html>
+<!--
+Check that we follow meta tag CSP restrictions when prefetching. Only
+prefetch2.js should be fetched.
+-->
+<head>
+<meta http-equiv="Content-Security-Policy"
+ content="script-src http://foo.bar">
+<script src="prerender/prefetch.js"></script>
+<script src="http://foo.bar/prerender/prefetch2.js"></script>
+</head>
+<body>
+</body>
+</html>
« no previous file with comments | « chrome/browser/prerender/prerender_test_utils.h ('k') | chrome/test/data/prerender/prefetch_response_csp.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698