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

Unified Diff: LayoutTests/http/tests/security/contentSecurityPolicy/manifest-src-blocked.html

Issue 570563003: Implement CSP check for manifest fetching (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 6 years, 3 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: LayoutTests/http/tests/security/contentSecurityPolicy/manifest-src-blocked.html
diff --git a/LayoutTests/http/tests/security/contentSecurityPolicy/manifest-src-blocked.html b/LayoutTests/http/tests/security/contentSecurityPolicy/manifest-src-blocked.html
new file mode 100644
index 0000000000000000000000000000000000000000..20b664fe89dfe44fc44fc4edb41fcec859d6d0e9
--- /dev/null
+++ b/LayoutTests/http/tests/security/contentSecurityPolicy/manifest-src-blocked.html
@@ -0,0 +1,12 @@
+<meta http-equiv="Content-Security-Policy" content="manifest-src 'self'">
+<link rel="manifest" href="http://www.evil.com/manifest.json">
Mike West 2014/09/29 11:00:46 Please add a test which verifies that a manifest w
+<script>
+ if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+ testRunner.getManifestThen(function() {
+ alert("Pass");
+ testRunner.notifyDone();
+ });
+ }
+</script>

Powered by Google App Engine
This is Rietveld 408576698