| Summary: | Add action menu support | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Beth Dakin <bdakin> | ||||||
| Component: | WebKit2 | Assignee: | Nobody <webkit-unassigned> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | andersca, bdakin, commit-queue, jonlee, sam, simon.fraser, thorton | ||||||
| Priority: | P2 | ||||||||
| Version: | 528+ (Nightly build) | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Beth Dakin
2014-10-20 12:54:37 PDT
Created attachment 240141 [details]
Patch
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.
(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. Created attachment 240143 [details]
Patch with slightly different WK2 spin
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 @[] Thanks Anders! http://trac.webkit.org/changeset/174908 |