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