RESOLVED FIXED137891
Add action menu support
https://bugs.webkit.org/show_bug.cgi?id=137891
Summary Add action menu support
Beth Dakin
Reported 2014-10-20 12:54:37 PDT
WK2 should support action menus. rdar://problem/18451638 rdar://problem/18694470
Attachments
Patch (39.27 KB, patch)
2014-10-20 12:56 PDT, Beth Dakin
no flags
Patch with slightly different WK2 spin (39.78 KB, patch)
2014-10-20 13:41 PDT, Beth Dakin
andersca: review+
Beth Dakin
Comment 1 2014-10-20 12:56:03 PDT
WebKit Commit Bot
Comment 2 2014-10-20 12:59:04 PDT
Attachment 240141 [details] did not pass style-queue: ERROR: Source/WebKit2/ChangeLog:1: ChangeLog entry has no bug number [changelog/bugnumber] [5] ERROR: Source/WebCore/ChangeLog:1: ChangeLog entry has no bug number [changelog/bugnumber] [5] Total errors found: 2 in 13 files If any of these errors are false positives, please file a bug against check-webkit-style.
Beth Dakin
Comment 3 2014-10-20 13:01:31 PDT
(In reply to comment #2) > Attachment 240141 [details] did not pass style-queue: > > > ERROR: Source/WebKit2/ChangeLog:1: ChangeLog entry has no bug number > [changelog/bugnumber] [5] > ERROR: Source/WebCore/ChangeLog:1: ChangeLog entry has no bug number > [changelog/bugnumber] [5] > Total errors found: 2 in 13 files > > > If any of these errors are false positives, please file a bug against > check-webkit-style. Oops! Fixed this.
Beth Dakin
Comment 4 2014-10-20 13:41:07 PDT
Created attachment 240143 [details] Patch with slightly different WK2 spin
Anders Carlsson
Comment 5 2014-10-20 13:46:52 PDT
Comment on attachment 240143 [details] Patch with slightly different WK2 spin View in context: https://bugs.webkit.org/attachment.cgi?id=240143&action=review > Source/WebKit2/UIProcess/API/mac/WKView.mm:3710 > + NSMutableArray *menuItems = [NSMutableArray array]; > + > + if (!hitTestResult) > + return menuItems; > + > + if (!hitTestResult->absoluteLinkURL().isEmpty()) > + return [self _defaultMenuItemsForLink]; I'd write this as if (WebHitTestResult* hitTestResult = _data->_page->activeActionMenuHitTestResult()) { if (!hitTestResult->absoluteLinkURL().isEmpty()) return [self _defaultMenuItemsForLink]; } return @[]
Beth Dakin
Comment 6 2014-10-20 14:00:45 PDT
Note You need to log in before you can comment on or make changes to this bug.