summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-15 19:49:36 +0000
committerpinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-15 19:49:36 +0000
commit4f876793cc6abebb436545a4e8934cd1a5c3d80e (patch)
tree1c3876099c04c2ad7427ea9fd7c904dc298042d5
parent026d7b8f3a5ecbe4f9f879386221c110afcb2810 (diff)
downloadchromium_src-4f876793cc6abebb436545a4e8934cd1a5c3d80e.zip
chromium_src-4f876793cc6abebb436545a4e8934cd1a5c3d80e.tar.gz
chromium_src-4f876793cc6abebb436545a4e8934cd1a5c3d80e.tar.bz2
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
-rw-r--r--chrome/browser/cocoa/blocked_popup_container_controller.mm2
1 files changed, 1 insertions, 1 deletions
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,