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

Issue 8302021: Prevent extension and bookmark popups from interfering with close window/tab shortcuts. (Closed)

Created:
9 years, 2 months ago by Ilya Sherman
Modified:
9 years, 1 month ago
CC:
chromium-reviews
Visibility:
Public.

Description

Prevent extension and bookmark popups from interfering with close window/tab shortcuts. When a balloon popup is open, the target of the close window/tab keyboard shortcut is still the main browser window. Update our custom menu item rejiggering code to pay attention to the main window, rather than to the popup window, when a popup is open. BUG=95169 TEST=(see bug) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=107666

Patch Set 1 #

Total comments: 4

Patch Set 2 : Check for child windows #

Total comments: 6

Patch Set 3 : Just check parent, no grandparents; restore NSValidatedUserInterfaceItem type #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -41 lines) Patch
M chrome/browser/app_controller_mac.mm View 1 2 6 chunks +21 lines, -38 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.mm View 1 2 1 chunk +6 lines, -3 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Ilya Sherman
http://codereview.chromium.org/8302021/diff/1/chrome/browser/app_controller_mac.mm File chrome/browser/app_controller_mac.mm (right): http://codereview.chromium.org/8302021/diff/1/chrome/browser/app_controller_mac.mm#newcode415 chrome/browser/app_controller_mac.mm:415: [[NSApp keyWindow] isKindOfClass:[ChromeEventProcessingWindow class]])) { This seems a little ...
9 years, 2 months ago (2011-10-15 04:31:38 UTC) #1
Ilya Sherman
+Scott
9 years, 2 months ago (2011-10-19 00:57:04 UTC) #2
Mark Mentovai
LGTM
9 years, 2 months ago (2011-10-19 01:14:59 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/isherman@chromium.org/8302021/1
9 years, 2 months ago (2011-10-19 02:37:17 UTC) #4
Scott Hess - ex-Googler
http://codereview.chromium.org/8302021/diff/1/chrome/browser/app_controller_mac.mm File chrome/browser/app_controller_mac.mm (right): http://codereview.chromium.org/8302021/diff/1/chrome/browser/app_controller_mac.mm#newcode415 chrome/browser/app_controller_mac.mm:415: [[NSApp keyWindow] isKindOfClass:[ChromeEventProcessingWindow class]])) { On 2011/10/15 04:31:38, Ilya ...
9 years, 2 months ago (2011-10-19 02:43:41 UTC) #5
Ilya Sherman
On 2011/10/19 02:43:41, shess wrote: > http://codereview.chromium.org/8302021/diff/1/chrome/browser/app_controller_mac.mm > File chrome/browser/app_controller_mac.mm (right): > > http://codereview.chromium.org/8302021/diff/1/chrome/browser/app_controller_mac.mm#newcode415 > ...
9 years, 2 months ago (2011-10-21 07:23:13 UTC) #6
Scott Hess - ex-Googler
On 2011/10/21 07:23:13, Ilya Sherman wrote: > Argh, I figured out why we are so ...
9 years, 2 months ago (2011-10-21 14:40:23 UTC) #7
Ilya Sherman
On 2011/10/21 14:40:23, shess wrote: > On 2011/10/21 07:23:13, Ilya Sherman wrote: > > Argh, ...
9 years, 2 months ago (2011-10-22 04:42:04 UTC) #8
Scott Hess - ex-Googler
LGTM, except perhaps the change to only expect NSMenuItem*, that seems sketchy to me. http://codereview.chromium.org/8302021/diff/8001/chrome/browser/app_controller_mac.mm ...
9 years, 2 months ago (2011-10-25 23:40:59 UTC) #9
Ilya Sherman
http://codereview.chromium.org/8302021/diff/8001/chrome/browser/app_controller_mac.mm File chrome/browser/app_controller_mac.mm (right): http://codereview.chromium.org/8302021/diff/8001/chrome/browser/app_controller_mac.mm#newcode183 chrome/browser/app_controller_mac.mm:183: } On 2011/10/25 23:40:59, shess wrote: > I think ...
9 years, 1 month ago (2011-10-26 23:22:40 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/isherman@chromium.org/8302021/15001
9 years, 1 month ago (2011-10-27 22:57:34 UTC) #11
commit-bot: I haz the power
9 years, 1 month ago (2011-10-28 00:43:46 UTC) #12
Change committed as 107666

Powered by Google App Engine
This is Rietveld 408576698