mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
43 lines
839 B
HTML
43 lines
839 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Child window at test1.example.org</title>
|
|
<script type="application/javascript">
|
|
|
|
function run()
|
|
{
|
|
var storage;
|
|
|
|
var message = "child-response";
|
|
|
|
// This script expects to be loaded as test1.example.org
|
|
if (window.location.host != "test1.example.org") {
|
|
message += "\n child not loaded as test1.example.org";
|
|
}
|
|
|
|
document.domain = "example.org";
|
|
|
|
try {
|
|
storage = globalStorage["test1.example.org"];
|
|
message += "\n passed globalStorage[\"test1.example.org\"]";
|
|
}
|
|
catch (ex) {
|
|
}
|
|
|
|
try {
|
|
storage = globalStorage["example.org"];
|
|
}
|
|
catch (ex) {
|
|
message += "\n failed globalStorage[\"example.org\"]";
|
|
}
|
|
|
|
window.parent.postMessage(message, "http://localhost:8888");
|
|
}
|
|
|
|
window.addEventListener("load", run, false);
|
|
</script>
|
|
</head>
|
|
<body>
|
|
</body>
|
|
</html>
|