Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / test / data / extensions / api_test / app_background_page / common / close.html
blob23093e96f7c58b9a18112901bfb0911f549281fc
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>
6 <script>
7 var backgroundWindow;
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');
22 </script>