Changeset 181705 in webkit


Ignore:
Timestamp:
Mar 18, 2015, 11:40:48 AM (10 years ago)
Author:
timothy_horton@apple.com
Message:

Cannot invoke action menus anymore
https://bugs.webkit.org/show_bug.cgi?id=142797
<rdar://problem/20032670>

  • UIProcess/API/mac/WKView.mm:

Need one more respondsToSelector check.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r181702 r181705  
     12015-03-18  Tim Horton  <timothy_horton@apple.com>
     2
     3        Cannot invoke action menus anymore
     4        https://bugs.webkit.org/show_bug.cgi?id=142797
     5        <rdar://problem/20032670>
     6
     7        * UIProcess/API/mac/WKView.mm:
     8        Need one more respondsToSelector check.
     9
    1102015-03-18  Chris Dumez  <cdumez@apple.com>
    211
  • trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm

    r181679 r181705  
    12141214            return; \
    12151215        } \
    1216         if ([NSMenu menuTypeForEvent:theEvent] == NSMenuTypeActionMenu) { \
     1216        if ([NSMenu respondsToSelector:@selector(menuTypeForEvent:)] && [NSMenu menuTypeForEvent:theEvent] == NSMenuTypeActionMenu) { \
    12171217            [super Selector:theEvent]; \
    12181218            return; \
Note: See TracChangeset for help on using the changeset viewer.