1 <script src=
"common.js"></script>
2 <h1 id=
"status">Page B
</h1>
3 <div style=
"display:none" id=
"pageToScriptTunnel"></div>
4 <div style=
"display:none" id=
"scriptToPageTunnel"></div>
9 window
.onload = function() {
11 backgroundWindow
= window
.open('', 'bg');
12 setStatus('background page retrieved');
13 backgroundWindow
.onPageBLoaded(window
);
16 function onBackgroundPageResponded() {
17 if (!backgroundWindow
.checkAndIncrementCounter(1)) {
18 setStatus('counter has unexpected value');
22 setStatus('background responded');
23 notifyBackgroundPageResponded();
24 backgroundWindow
.onPageBUnloading();