Unreviewed, reverting r276271.
[WebKit-https.git] / LayoutTests / imported / w3c / web-platform-tests / html / browsers / origin / relaxing-the-same-origin-restriction / sandboxed-document_domain.html
1 <!doctype html>
2 <title>Sandboxed document.domain</title>
3 <script src="/resources/testharness.js"></script>
4 <script src="/resources/testharnessreport.js"></script>
5 <script>
6   test(() => {
7     assert_throws_dom("SecurityError", () => { document.domain = document.domain });
8   });
9   test(() => {
10     assert_throws_dom("SecurityError", () => { (new Document).domain = document.domain });
11   });
12   test(() => {
13     assert_throws_dom("SecurityError", () => { document.implementation.createHTMLDocument().domain = document.domain });
14   });
15   test(() => {
16     assert_throws_dom("SecurityError", () => { document.implementation.createDocument(null, "").domain = document.domain });
17   });
18   test(() => {
19     assert_throws_dom("SecurityError", () => { document.createElement("template").content.ownerDocument.domain = document.domain });
20   });
21 </script>