Changeset 73560 in webkit


Ignore:
Timestamp:
Dec 8, 2010 3:33:49 PM (13 years ago)
Author:
bweinstein@apple.com
Message:

REGRESSION: r73429-r73490: Some Contextual menu items non-functional, such as Open Link in New Tab
https://bugs.webkit.org/show_bug.cgi?id=50683

Reviewed by John Sullivan.

If our context menu item already has an action, don't overwrite the action with the context menu
forwarder.

  • WebView/WebHTMLView.mm:

(setMenuItemTarget):

Location:
trunk/WebKit/mac
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/mac/ChangeLog

    r73552 r73560  
     12010-12-08  Brian Weinstein  <bweinstein@apple.com>
     2
     3        Reviewed by John Sullivan.
     4
     5        REGRESSION: r73429-r73490: Some Contextual menu items non-functional, such as Open Link in New Tab
     6        https://bugs.webkit.org/show_bug.cgi?id=50683
     7       
     8        If our context menu item already has an action, don't overwrite the action with the context menu
     9        forwarder.
     10
     11        * WebView/WebHTMLView.mm:
     12        (setMenuItemTarget):
     13
    1142010-12-08  Anders Carlsson  <andersca@apple.com>
    215
  • trunk/WebKit/mac/WebView/WebHTMLView.mm

    r73535 r73560  
    32733273static void setMenuItemTarget(NSMenuItem* menuItem)
    32743274{
     3275    // Don't set the menu item's action to the context menu action forwarder if we already
     3276    // have an action.
     3277    if ([menuItem action])
     3278        return;
     3279
    32753280    [menuItem setTarget:[WebMenuTarget sharedMenuTarget]];
    32763281    [menuItem setAction:@selector(forwardContextMenuAction:)];
Note: See TracChangeset for help on using the changeset viewer.