document-domain-nested.window.js (555B)
1 test(() => { 2 // As the initial:about frame document reuses the origin of this document, setting document.domain 3 // from this document, resulting in a origin mutation, has no effect on these documents being able 4 // to reach each other, as they share the same "physical" origin. 5 document.body.appendChild(document.createElement('iframe')); 6 document.domain = document.domain; 7 // Ensure we can still access the child browsing context 8 assert_equals(window[0].document.body.localName, "body"); 9 }, "Initial about:blank frame and document.domain");