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

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

Issue 2805203002: Un-skipped wpt/csp/svg tests (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Object inside SVG foreignobject respect csp</title>
5 <meta http-equiv="Content-Security-Policy" content="object-src 'none'">
6 <script src="/resources/testharness.js"></script>
7 <script src="/resources/testharnessreport.js"></script>
8 <script>
9 async_test(function(t) {
10 document.addEventListener("securitypolicyviolation", t.step_func_done(fu nction(e) {
11 if (e.blockedURI != "/content-security-policy/support/mock-plugin.pl")
12 return;
13
14 assert_equals(e.violatedDirective, "object-src");
15 }));
16 }, "Should throw a securitypolicyviolation");
17 </script>
18 </head>
19 <body>
20 <svg>
21 <foreignObject>
22 <object xmlns="http://www.w3.org/1999/xhtml" data="/content-security -policy/support/mock-plugin.pl" />
23 </foreignObject>
24 </svg>
25 </body>
26 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698