1 <script src=
"common.js"></script>
2 <h1 id=
"status">Close BG Page
</h1>
3 <div style=
"display:none" id=
"pageToScriptTunnel"></div>
4 <div style=
"display:none" id=
"scriptToPageTunnel"></div>
9 window
.onload = function() {
10 // This page just closes an existing BG window.
12 backgroundWindow
= window
.open('bg.html', 'bg', 'background');
13 if (backgroundWindow
) {
14 setStatus('closing background page');
15 backgroundWindow
.close();
16 notifyBackgroundPageClosed();
18 notifyBackgroundPagePermissionDenied();
19 setStatus('background page permission denied');