3 <script src=
"resources/clearSessionStorage.js"></script>
6 if (window
.testRunner
) {
7 testRunner
.dumpAsText();
8 testRunner
.setCanOpenWindows();
9 testRunner
.waitUntilDone();
14 document
.getElementById("logger").innerHTML
+= a
+ "<br>";
19 if (!window
.sessionStorage
) {
20 log("window.sessionStorage DOES NOT exist");
26 window
.sessionStorage
.setItem("FOO", "BAR");
27 log("Value for FOO is " + window
.sessionStorage
.getItem("FOO"));
28 window
.open("resources/window-open-second.html");
35 <body onload=
"runTest();">
36 This is a new window to make sure there is a copy of the previous window's sessionStorage, and that they diverge after a change
<br>
37 <div id=
"logger"></div>