Bug 146567 - Allow UIDelegate to customize link actions in preview.
Summary: Allow UIDelegate to customize link actions in preview.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-02 17:44 PDT by Yongjun Zhang
Modified: 2015-07-06 14:32 PDT (History)
5 users (show)

See Also:


Attachments
Patch. (13.65 KB, patch)
2015-07-02 18:06 PDT, Yongjun Zhang
no flags Details | Formatted Diff | Diff
Patch, fixed style violation. (13.55 KB, patch)
2015-07-02 18:11 PDT, Yongjun Zhang
bdakin: review+
Details | Formatted Diff | Diff
Patch for landing. (13.79 KB, patch)
2015-07-06 13:32 PDT, Yongjun Zhang
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yongjun Zhang 2015-07-02 17:44:47 PDT
The link sheet actions should be customizable in preview view controller.
Comment 1 Yongjun Zhang 2015-07-02 18:06:32 PDT
Created attachment 256061 [details]
Patch.
Comment 2 WebKit Commit Bot 2015-07-02 18:07:48 PDT
Attachment 256061 [details] did not pass style-queue:


ERROR: Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm:3222:  An else if statement should be written as an if statement when the prior "if" concludes with a return, break, continue or goto statement.  [readability/control_flow] [4]
Total errors found: 1 in 8 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Yongjun Zhang 2015-07-02 18:11:04 PDT
Created attachment 256062 [details]
Patch, fixed style violation.
Comment 4 Tim Horton 2015-07-03 00:22:01 PDT
Comment on attachment 256062 [details]
Patch, fixed style violation.

View in context: https://bugs.webkit.org/attachment.cgi?id=256062&action=review

> Source/WebKit2/ChangeLog:7
> +        the client customize the actions based on the element. Also add a new SPI runActionWithElementInfo:

...allow the client [to] customize...

> Source/WebKit2/UIProcess/ios/WKActionSheetAssistant.mm:313
> +    NSURL *targetURL = [NSURL URLWithString:positionInformation.url];

_web_URLWithWTFString, no?
Comment 5 Beth Dakin 2015-07-06 12:36:16 PDT
Comment on attachment 256062 [details]
Patch, fixed style violation.

View in context: https://bugs.webkit.org/attachment.cgi?id=256062&action=review

>> Source/WebKit2/UIProcess/ios/WKActionSheetAssistant.mm:313
>> +    NSURL *targetURL = [NSURL URLWithString:positionInformation.url];
> 
> _web_URLWithWTFString, no?

Even though this is existing code, this would be a good change to make.
Comment 6 Yongjun Zhang 2015-07-06 13:32:54 PDT
Created attachment 256236 [details]
Patch for landing.
Comment 7 WebKit Commit Bot 2015-07-06 14:32:09 PDT
Comment on attachment 256236 [details]
Patch for landing.

Clearing flags on attachment: 256236

Committed r186377: <http://trac.webkit.org/changeset/186377>
Comment 8 WebKit Commit Bot 2015-07-06 14:32:13 PDT
All reviewed patches have been landed.  Closing bug.