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

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

Issue 76303002: CSP: Check <param> element values against the document's CSP before loading. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Async. Created 6 years, 11 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/object-src-param-src-blocked.html
diff --git a/LayoutTests/http/tests/security/contentSecurityPolicy/object-src-param-src-blocked.html b/LayoutTests/http/tests/security/contentSecurityPolicy/object-src-param-src-blocked.html
new file mode 100644
index 0000000000000000000000000000000000000000..def6f5176c8b9f2660b8fb73746a63968ec0700f
--- /dev/null
+++ b/LayoutTests/http/tests/security/contentSecurityPolicy/object-src-param-src-blocked.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="resources/object-src-param.js"></script>
+<meta http-equiv="Content-Security-Policy" content="object-src http://localhost:8080">
+</head>
+<body>
+This test passes if there is a console message saying the plugin was blocked.
+<script>
+ appendObjectElement('src');
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698