Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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> | |
| 5 | |
| 6 <script> | |
| 7 var backgroundWindow; | |
| 8 | |
| 9 window.onload = function() { | |
| 10 // This page just closes an existing BG window. | |
| 11 setupScriptTunnel(); | |
| 12 backgroundWindow = window.open('bg.html', 'bg', 'background'); | |
| 13 if (backgroundWindow) { | |
| 14 setStatus('closing background page'); | |
| 15 backgroundWindow.close(); | |
| 16 notifyBackgroundPageClosed(); | |
| 17 } else { | |
| 18 notifyBackgroundPagePermissionDenied(); | |
| 19 setStatus('background page permission denied'); | |
| 20 alert("foo"); | |
|
Mihai Parparita -not on Chrome
2012/05/03 00:54:11
This should be removed.
Andrew T Wilson (Slow)
2012/05/03 07:42:56
Done.
| |
| 21 } | |
| 22 } | |
| 23 </script> | |
| OLD | NEW |