| Index: chrome/browser/ui/cocoa/tabs/tab_strip_view.mm
|
| diff --git a/chrome/browser/ui/cocoa/tabs/tab_strip_view.mm b/chrome/browser/ui/cocoa/tabs/tab_strip_view.mm
|
| index 8334d31dd830815a074bd3be78df351dac30b8f8..dc227e56e4e76733f81230e85a5cba4c13071a20 100644
|
| --- a/chrome/browser/ui/cocoa/tabs/tab_strip_view.mm
|
| +++ b/chrome/browser/ui/cocoa/tabs/tab_strip_view.mm
|
| @@ -227,6 +227,17 @@
|
| return YES;
|
| }
|
|
|
| +// When displaying a modal sheet, interaction with the tabs (e.g. middle-click
|
| +// to close a tab) should be blocked. -[NSWindow sendEvent] blocks left-click,
|
| +// but not others. To prevent clicks going to subviews, absorb them here. This
|
| +// is also done in FastResizeView, but TabStripView is in the title bar, so is
|
| +// not contained in a FastResizeView.
|
| +- (NSView*)hitTest:(NSPoint)aPoint {
|
| + if ([[self window] attachedSheet])
|
| + return self;
|
| + return [super hitTest:aPoint];
|
| +}
|
| +
|
| // Trap double-clicks and make them miniaturize the browser window.
|
| - (void)mouseUp:(NSEvent*)event {
|
| // Bail early if double-clicks are disabled.
|
|
|