| OLD | NEW |
| (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> |
| OLD | NEW |