Changeset 19409 in webkit


Ignore:
Timestamp:
Feb 5, 2007 1:10:49 PM (17 years ago)
Author:
bdakin
Message:

Reviewed by Adam.

Fix for <rdar://problem/4975161> REGRESSION: With BumperCar 2.1.1,
the contextual menu fails to appear when I ctrl-click on page

  • WebCoreSupport/WebContextMenuClient.mm: (WebContextMenuClient::getCustomMenuFromDefaultItems): If the delegate does not respond to contextMenuItemsForElement, return the default menu instead of nil.
Location:
trunk/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/ChangeLog

    r19364 r19409  
     12007-02-05  Beth Dakin  <bdakin@apple.com>
     2
     3        Reviewed by Adam.
     4
     5        Fix for <rdar://problem/4975161> REGRESSION: With BumperCar 2.1.1,
     6        the contextual menu fails to appear when I ctrl-click on page
     7
     8        * WebCoreSupport/WebContextMenuClient.mm:
     9        (WebContextMenuClient::getCustomMenuFromDefaultItems): If the
     10        delegate does not respond to contextMenuItemsForElement, return the
     11        default menu instead of nil.
     12
    1132007-02-01  Geoffrey Garen  <ggaren@apple.com>
    214
  • trunk/WebKit/WebCoreSupport/WebContextMenuClient.mm

    r18995 r19409  
    169169    id delegate = [m_webView UIDelegate];
    170170    if (![delegate respondsToSelector:@selector(webView:contextMenuItemsForElement:defaultMenuItems:)])
    171         return nil;
     171        return defaultMenu->platformDescription();
    172172   
    173173    NSDictionary *element = [[[WebElementDictionary alloc] initWithHitTestResult:defaultMenu->hitTestResult()] autorelease];
Note: See TracChangeset for help on using the changeset viewer.