mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-30 05:35:31 +00:00
64 lines
1.1 KiB
HTML
64 lines
1.1 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Child window at 127.0.0.1</title>
|
|
<script type="application/javascript">
|
|
|
|
function run()
|
|
{
|
|
var storage;
|
|
|
|
var message = "child-response";
|
|
|
|
try {
|
|
storage = globalStorage["127.0.0.1"];
|
|
}
|
|
catch (ex) {
|
|
message += "\n failed globalStorage[\"127.0.0.1\"]";
|
|
}
|
|
|
|
try {
|
|
storage = globalStorage["126.0.0.1"];
|
|
message += "\n passed globalStorage[\"126.0.0.1\"]";
|
|
}
|
|
catch (ex) {
|
|
}
|
|
|
|
try {
|
|
storage = globalStorage["0.0.1"];
|
|
message += "\n passed globalStorage[\"0.0.1\"]";
|
|
}
|
|
catch (ex) {
|
|
}
|
|
|
|
try {
|
|
storage = globalStorage["126.0.0"];
|
|
message += "\n passed globalStorage[\"126.0.0\"]";
|
|
}
|
|
catch (ex) {
|
|
}
|
|
|
|
try {
|
|
storage = globalStorage["X.126.0.0.1"];
|
|
message += "\n passed globalStorage[\"X.126.0.0.1\"]";
|
|
}
|
|
catch (ex) {
|
|
}
|
|
|
|
try {
|
|
storage = globalStorage["X.0.0.1"];
|
|
message += "\n passed globalStorage[\"X.0.0.1\"]";
|
|
}
|
|
catch (ex) {
|
|
}
|
|
|
|
window.parent.postMessage(message, "http://localhost:8888");
|
|
}
|
|
|
|
window.addEventListener("load", run, false);
|
|
</script>
|
|
</head>
|
|
<body>
|
|
</body>
|
|
</html>
|