gecko/dom/tests/mochitest/bugs/iframe_bug409349.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://mochi.test:8888");
}
window.addEventListener("load", run, false);
</script>
</head>
<body>
</body>
</html>