mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-29 21:25:35 +00:00
18 lines
469 B
HTML
18 lines
469 B
HTML
<body onload="postBack();">
|
|
<script>
|
|
var childWin;
|
|
function postBack() {
|
|
childWin = window.frames[0];
|
|
var s = decodeURIComponent(window.location.search.substring(1));
|
|
var cmd = JSON.parse(s);
|
|
if ("load" in cmd) {
|
|
window.testNum = cmd.load;
|
|
} else if ("write" in cmd) {
|
|
window.testNum = cmd.write;
|
|
}
|
|
window.opener.postMessage(s, "http://mochi.test:8888");
|
|
}
|
|
</script>
|
|
<iframe></iframe>
|
|
</body>
|