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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/content-security-policy/svg/object-in-svg-foreignobject.sub.html

Issue 2805203002: Un-skipped wpt/csp/svg tests (Closed)
Patch Set: Changed loaded object 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: third_party/WebKit/LayoutTests/external/wpt/content-security-policy/svg/object-in-svg-foreignobject.sub.html
diff --git a/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/svg/object-in-svg-foreignobject.sub.html b/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/svg/object-in-svg-foreignobject.sub.html
new file mode 100644
index 0000000000000000000000000000000000000000..aa4f15695307e6de3050e482e9ed6ba3240899e3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/svg/object-in-svg-foreignobject.sub.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>Object inside SVG foreignobject respect csp</title>
+ <meta http-equiv="Content-Security-Policy" content="object-src 'none'">
+ <script src="/resources/testharness.js"></script>
+ <script src="/resources/testharnessreport.js"></script>
+ <script>
+ async_test(function(t) {
+ document.addEventListener("securitypolicyviolation", t.step_func(function(e) {
+ if (e.blockedURI != "{{location[scheme]}}://{{location[host]}}/content-security-policy/support/media/flash.swf")
+ return;
+
+ assert_equals(e.violatedDirective, "object-src");
+ t.done();
+ }));
+ }, "Should throw a securitypolicyviolation");
+ </script>
+</head>
+<body>
+ <svg>
+ <foreignObject>
+ <embed type="application/x-shockwave-flash" src="/content-security-policy/support/media/flash.swf">
+ </foreignObject>
+ </svg>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698