summaryrefslogtreecommitdiffstats
path: root/js/xpconnect/tests/browser/browser_realm_key_object_prototype_frame.html
blob: 5f3c0b5c2c978762995f558c4d8fef6508ff1ec3 (plain)
1
2
3
4
5
6
7
8
9
10
11
<script type="text/javascript">
// Access to the top-level window property before getting access.
// This will create an entry in cross-origin realm map.
try {
  window.top.Object;
} catch (e) {}

document.domain = "mochi.test";

window.top.check();
</script>