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

Issue 7740060: [Mac] Tear down extension-installed bubble before main window closes. (Closed)

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

Description

[Mac] Tear down extension-installed bubble before main window closes. The main window closed before the bubble, so when the bubble tried to remove itself as a child window, it called a stale reference. Additionally, revise a couple uses of this pattern to be more robust by asking the window being closed to remove itself from its current parent window (which would be nil in this case). BUG=94172 TEST=see bug, monitor crash server. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=99784

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add unit test. #

Total comments: 1

Patch Set 3 : Remove the leaked notification. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -11 lines) Patch
M chrome/browser/ui/cocoa/base_bubble_controller.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller.mm View 2 chunks +12 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller_unittest.mm View 1 2 2 chunks +37 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_popup_controller.mm View 1 chunk +1 line, -9 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Scott Hess - ex-Googler
Looks like someone forgot to replicate all of the skeleton when they copy/pasted this from ...
9 years, 3 months ago (2011-08-30 21:17:42 UTC) #1
asargent_no_longer_on_chrome
This seems fine from my perspective, with the caveat that objective c is still largely ...
9 years, 3 months ago (2011-08-30 22:24:53 UTC) #2
Scott Hess - ex-Googler
Randomly rerouting for Mac review.
9 years, 3 months ago (2011-08-31 23:36:09 UTC) #3
Robert Sesek
http://codereview.chromium.org/7740060/diff/1/chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller.mm File chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller.mm (right): http://codereview.chromium.org/7740060/diff/1/chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller.mm#newcode111 chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller.mm:111: // Watch to see if the parent window closes, ...
9 years, 3 months ago (2011-09-01 16:20:39 UTC) #4
Scott Hess - ex-Googler
http://codereview.chromium.org/7740060/diff/1/chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller.mm File chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller.mm (right): http://codereview.chromium.org/7740060/diff/1/chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller.mm#newcode111 chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller.mm:111: // Watch to see if the parent window closes, ...
9 years, 3 months ago (2011-09-02 01:19:11 UTC) #5
Robert Sesek
On 2011/09/02 01:19:11, shess wrote: > http://codereview.chromium.org/7740060/diff/1/chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller.mm > File chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller.mm > (right): > > http://codereview.chromium.org/7740060/diff/1/chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller.mm#newcode111 ...
9 years, 3 months ago (2011-09-02 13:41:05 UTC) #6
Scott Hess - ex-Googler
On 2011/09/02 13:41:05, rsesek wrote: > On 2011/09/02 01:19:11, shess wrote: > > > http://codereview.chromium.org/7740060/diff/1/chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller.mm ...
9 years, 3 months ago (2011-09-03 04:37:54 UTC) #7
Scott Hess - ex-Googler
http://codereview.chromium.org/7740060/diff/8001/chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller_unittest.mm File chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller_unittest.mm (right): http://codereview.chromium.org/7740060/diff/8001/chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller_unittest.mm#newcode228 chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller_unittest.mm:228: addMockObserver:observer name:notification object:bubbleWindow]; I notice that the notifications need ...
9 years, 3 months ago (2011-09-03 14:07:21 UTC) #8
Robert Sesek
On Saturday, September 3, 2011, <shess@chromium.org> wrote: > On 2011/09/02 13:41:05, rsesek wrote: >> >> ...
9 years, 3 months ago (2011-09-03 15:19:55 UTC) #9
Scott Hess - ex-Googler
On 2011/09/03 15:19:55, rsesek wrote: > On Saturday, September 3, 2011, <mailto:shess@chromium.org> wrote: > > ...
9 years, 3 months ago (2011-09-06 00:33:44 UTC) #10
Robert Sesek
LGTM. Thanks for adding a test!
9 years, 3 months ago (2011-09-06 16:08:06 UTC) #11
commit-bot: I haz the power
9 years, 3 months ago (2011-09-06 19:14:55 UTC) #12
Change committed as 99784

Powered by Google App Engine
This is Rietveld 408576698