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

Issue 7830046: Allow window.close() in background pages. (Closed)

Created:
9 years, 3 months ago by Tessa MacDuff
Modified:
9 years, 3 months ago
CC:
chromium-reviews, Aaron Boodman, Erik does not do reviews, mihaip+watch_chromium.org
Visibility:
Public.

Description

Allow window.close() in background pages. BUG=81759 TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=99910

Patch Set 1 #

Patch Set 2 : instead of background page suicide, have ExtensionProcessManager kill it #

Patch Set 3 : api test shows background page can close #

Total comments: 2

Patch Set 4 : s/DCHECK/CHECK/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, --1 lines) Patch
M chrome/browser/extensions/browser_action_apitest.cc View 1 2 1 chunk +26 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_host.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_process_manager.cc View 1 2 3 2 chunks +12 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/browser_action/close_background/background.html View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/browser_action/close_background/icon.png View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/test/data/extensions/api_test/browser_action/close_background/manifest.json View 1 2 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Tessa MacDuff
I'm writing a test now. I'm still hoping to get this in before the m15 ...
9 years, 3 months ago (2011-09-03 00:17:45 UTC) #1
Tessa MacDuff
I wrote a test! The test/demo extension closes the background page when you click the ...
9 years, 3 months ago (2011-09-03 06:18:27 UTC) #2
Tessa MacDuff
Mihai, I was hoping to get this small change into m15 so if you happen ...
9 years, 3 months ago (2011-09-03 19:02:42 UTC) #3
Aaron Boodman
lgtm, sorry for lagging http://codereview.chromium.org/7830046/diff/3004/chrome/browser/extensions/extension_process_manager.cc File chrome/browser/extensions/extension_process_manager.cc (right): http://codereview.chromium.org/7830046/diff/3004/chrome/browser/extensions/extension_process_manager.cc#newcode346 chrome/browser/extensions/extension_process_manager.cc:346: DCHECK(background_hosts_.find(host) == background_hosts_.end()); Don't be ...
9 years, 3 months ago (2011-09-06 19:47:04 UTC) #4
Tessa MacDuff
http://codereview.chromium.org/7830046/diff/3004/chrome/browser/extensions/extension_process_manager.cc File chrome/browser/extensions/extension_process_manager.cc (right): http://codereview.chromium.org/7830046/diff/3004/chrome/browser/extensions/extension_process_manager.cc#newcode346 chrome/browser/extensions/extension_process_manager.cc:346: DCHECK(background_hosts_.find(host) == background_hosts_.end()); On 2011/09/06 19:47:04, Aaron Boodman wrote: ...
9 years, 3 months ago (2011-09-07 00:59:21 UTC) #5
commit-bot: I haz the power
9 years, 3 months ago (2011-09-07 03:51:08 UTC) #6
Change committed as 99910

Powered by Google App Engine
This is Rietveld 408576698