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 / b.html
blob36dfb437291fce08df32775b85a1e656b9747a74
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>
6 <script>
7 var backgroundWindow;
9 window.onload = function() {
10 setupScriptTunnel();
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');
19 return;
22 setStatus('background responded');
23 notifyBackgroundPageResponded();
24 backgroundWindow.onPageBUnloading();
25 window.close();
27 </script>