| Index: third_party/WebKit/LayoutTests/external/wpt/content-security-policy/blink-contrib/object-in-svg-foreignobject.sub.html
|
| diff --git a/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/blink-contrib/object-in-svg-foreignobject.sub.html b/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/blink-contrib/object-in-svg-foreignobject.sub.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..358b7af1a7e38873ca3b660d48fa1fd92a7a95e9
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/blink-contrib/object-in-svg-foreignobject.sub.html
|
| @@ -0,0 +1,28 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +
|
| +<head>
|
| + <!-- Programmatically converted from a WebKit Reftest, please forgive resulting idiosyncracies.-->
|
| + <title>object-in-svg-foreignobject</title>
|
| + <script src="/resources/testharness.js"></script>
|
| + <script src="/resources/testharnessreport.js"></script>
|
| + <script src="../support/logTest.sub.js?logs=[]"></script>
|
| + <script src="../support/alertAssert.sub.js?alerts=[]"></script>
|
| + <!-- enforcing policy:
|
| +object-src 'none'; script-src 'self' 'unsafe-inline'; connect-src 'self';
|
| +-->
|
| +</head>
|
| +
|
| +<body>
|
| + <p>This test ensures that objects inside SVG foreignobject elements are beholden to the same policy as the rest of the document. This test passes if there i a CSP violation saying the plugin was blocked.</p>
|
| + <svg>
|
| + <foreignobject>
|
| + <object xmlns="http://www.w3.org/1999/xhtml" data="/plugins/resources/mock-plugin.pl">
|
| + </object>
|
| + </foreignobject>
|
| + </svg>
|
| + <div id="log"></div>
|
| + <script async defer src="../support/checkReport.sub.js?reportExists=true&reportField=violated-directive&reportValue=object-src%20'none'"></script>
|
| +</body>
|
| +
|
| +</html>
|
|
|