2 // Access session storage to make sure it's working.
3 sessionStorage
.setItem("foo", "bar");
5 <script src=
"common.js"></script>
6 <h1 id=
"status">Background
</h1>
7 <div style=
"display:none" id=
"pageToScriptTunnel"></div>
8 <div style=
"display:none" id=
"scriptToPageTunnel"></div>
13 function checkAndIncrementCounter(expected
) {
14 if (counter
!= expected
) {
23 window
.onload = function() {
25 opener
.onBackgroundPageLoaded();
28 function onPageBLoaded(pageB
) {
29 pageB
.onBackgroundPageResponded();
32 function onPageBUnloading() {
33 notifyBackgroundPageClosing();