Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(588)

Side by Side Diff: chrome/test/data/extensions/api_test/app_background_page/common/close.html

Issue 10298002: No longer start BG mode until a BackgroundContents is loaded (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Prospective fix for cros test failures. Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 }
21 }
22 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698