| Index: third_party/WebKit/LayoutTests/external/wpt/content-security-policy/svg/object-in-svg-foreignobject.html
|
| diff --git a/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/svg/object-in-svg-foreignobject.html b/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/svg/object-in-svg-foreignobject.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..27e70e248ad1b372ecaa4abfb0d62fa65d4aeb7a
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/svg/object-in-svg-foreignobject.html
|
| @@ -0,0 +1,26 @@
|
| +<!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_done(function(e) {
|
| + if (e.blockedURI != "/content-security-policy/support/mock-plugin.pl")
|
| + return;
|
| +
|
| + assert_equals(e.violatedDirective, "object-src");
|
| + }));
|
| + }, "Should throw a securitypolicyviolation");
|
| + </script>
|
| +</head>
|
| +<body>
|
| + <svg>
|
| + <foreignObject>
|
| + <object xmlns="http://www.w3.org/1999/xhtml" data="/content-security-policy/support/mock-plugin.pl" />
|
| + </foreignObject>
|
| + </svg>
|
| +</body>
|
| +</html>
|
|
|