gecko/dom/tests/mochitest/bugs/bug346659-opener-echoer.html

7 lines
285 B
HTML

<script>
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect UniversalBrowserRead UniversalBrowserWrite");
window.opener.opener.postMessage(window.opener.testNum + " - " + window.x, "http://mochi.test:8888");
window.opener.close();
window.close();
</script>