Index: chrome/browser/ui/cocoa/location_bar/page_action_decoration.mm |
=================================================================== |
--- chrome/browser/ui/cocoa/location_bar/page_action_decoration.mm (revision 152076) |
+++ chrome/browser/ui/cocoa/location_bar/page_action_decoration.mm (working copy) |
@@ -286,7 +286,9 @@ |
if (extension_id != page_action_->extension_id()) |
break; |
NSRect frame = owner_->GetPageActionFrame(page_action_); |
- ActivatePageAction(frame); |
+ // |frame| can be empty if the page action is hidden. |
+ if (!NSIsEmptyRect(frame)) |
+ ActivatePageAction(frame); |
break; |
} |