1 <script type=
"text/javascript">
2 // Access to the top-level window property before getting access.
3 // This will create an entry in cross-origin realm map.
8 document
.domain
= "mochi.test";
10 // Ensure that frame's Object.prototype is accessible from top-level frame
11 // when getting incumbent global object inside Promise handling.
12 window
.top
.P
.then(v
=> {
14 window
.top
.document
.getElementById("result").textContent
= "OK";