From 4f876793cc6abebb436545a4e8934cd1a5c3d80e Mon Sep 17 00:00:00 2001 From: "pinkerton@chromium.org" Date: Wed, 15 Jul 2009 19:49:36 +0000 Subject: Only register for popup menu notifications from our popup cell, not all of them. BUG=16299 TEST=get a blocked popup, go to a site that has html selects. the popup menus should both work correctly. Review URL: http://codereview.chromium.org/149694 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20768 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/cocoa/blocked_popup_container_controller.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/browser/cocoa/blocked_popup_container_controller.mm b/chrome/browser/cocoa/blocked_popup_container_controller.mm index 4df3dba..dcf836f 100644 --- a/chrome/browser/cocoa/blocked_popup_container_controller.mm +++ b/chrome/browser/cocoa/blocked_popup_container_controller.mm @@ -101,7 +101,7 @@ class BlockedPopupContainerViewBridge : public BlockedPopupContainerView { addObserver:self selector:@selector(showMenu:) name:NSPopUpButtonCellWillPopUpNotification - object:nil]; + object:[popupButton_ cell]]; // Create the close box and position at the left of the view. NSRect closeFrame = NSMakeRect(startFrame.size.width - kCloseBoxSize, -- cgit v1.1