plugin-document.historical.html (578B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>Same-origin PDFs must not create accessible Document objects</title> 4 <script src="/resources/testharness.js"></script> 5 <script src="/resources/testharnessreport.js"></script> 6 7 <!-- https://github.com/whatwg/html/pull/6947 --> 8 9 <iframe src="resources/portable-document-format-sample-valid.pdf"></iframe> 10 11 <script> 12 setup({ explicit_done: true }); 13 14 window.onload = () => { 15 test(() => { 16 assert_throws_dom("SecurityError", () => { 17 document.querySelector("iframe").contentWindow.document; 18 }); 19 }); 20 done(); 21 }; 22 </script>