OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="/resources/testharness.js"></script> |
| 3 <script src="/resources/testharnessreport.js"></script> |
| 4 <script> |
| 5 var t = async_test("SVG in <object> in sandboxed <iframe> is not blocked."); |
| 6 onmessage = t.step_func_done(function(message) { |
| 7 assert_equals(message.data, 'load'); |
| 8 var iframe = document.querySelector('iframe'); |
| 9 var containedObject = iframe.contentDocument.querySelector('object'); |
| 10 var svgRoot = containedObject.contentDocument.documentElement; |
| 11 assert_equals(svgRoot.localName, "svg"); |
| 12 assert_equals(svgRoot.namespaceURI, "http://www.w3.org/2000/svg"); |
| 13 }); |
| 14 </script> |
| 15 <iframe sandbox="allow-same-origin allow-scripts" src="resources/object-svg.html
" |
| 16 style="border: none; margin: 0" |
| 17 scrolling="no"></iframe> |
OLD | NEW |