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