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 / bg.html
blob2562c6b84b8bd573b70987d91362d605e875232b
1 <script>
2 // Access session storage to make sure it's working.
3 sessionStorage.setItem("foo", "bar");
4 </script>
5 <script src="common.js"></script>
6 <h1 id="status">Background</h1>
7 <div style="display:none" id="pageToScriptTunnel"></div>
8 <div style="display:none" id="scriptToPageTunnel"></div>
10 <script>
11 var counter = 0;
13 function checkAndIncrementCounter(expected) {
14 if (counter != expected) {
15 window.close();
16 return false;
19 counter++;
20 return true;
23 window.onload = function() {
24 setupScriptTunnel();
25 opener.onBackgroundPageLoaded();
28 function onPageBLoaded(pageB) {
29 pageB.onBackgroundPageResponded();
32 function onPageBUnloading() {
33 notifyBackgroundPageClosing();
34 window.close();
36 </script>