RESOLVED FIXED195121
Expose APINavigationAction.shouldPerformDownload() on WKNavigationAction
https://bugs.webkit.org/show_bug.cgi?id=195121
Summary Expose APINavigationAction.shouldPerformDownload() on WKNavigationAction
David Quesada
Reported 2019-02-27 14:07:32 PST
When allowing a navigation action, a client might want to know whether WebKit will forcibly convert the load to a download due to a 'download' anchor attribute.
Attachments
Patch (2.76 KB, patch)
2019-02-27 14:52 PST, David Quesada
achristensen: review-
Patch v2 (17.12 KB, patch)
2019-02-27 17:23 PST, David Quesada
no flags
Patch v3 (17.13 KB, patch)
2019-02-27 18:00 PST, David Quesada
no flags
Patch v4 (17.21 KB, patch)
2019-02-27 18:10 PST, David Quesada
achristensen: review+
Patch for landing (17.18 KB, patch)
2019-02-28 14:58 PST, David Quesada
no flags
Radar WebKit Bug Importer
Comment 1 2019-02-27 14:23:12 PST
David Quesada
Comment 2 2019-02-27 14:52:18 PST
Alex Christensen
Comment 3 2019-02-27 15:01:12 PST
This needs more motivation justification. What do you intend to do with this information? What are we planning to do that we have never done before that this would enable?
Alex Christensen
Comment 4 2019-02-27 15:13:43 PST
Comment on attachment 363135 [details] Patch We will need this, and maybe something else, too. We'll figure that out in another patch. r- because I think this should have a test.
David Quesada
Comment 5 2019-02-27 17:23:57 PST
Created attachment 363162 [details] Patch v2
David Quesada
Comment 6 2019-02-27 18:00:21 PST
Created attachment 363172 [details] Patch v3 Try to fix the broken EWS builds.
David Quesada
Comment 7 2019-02-27 18:10:03 PST
Created attachment 363173 [details] Patch v4
Alex Christensen
Comment 8 2019-02-28 14:46:49 PST
Comment on attachment 363173 [details] Patch v4 View in context: https://bugs.webkit.org/attachment.cgi?id=363173&action=review > Tools/TestWebKitAPI/Tests/WebKitCocoa/NavigationAction.mm:97 > + auto baseURL = adoptNS([[NSURL alloc] initWithString:@"https://example.com/index.html"]); This is a little simpler: [NSURL URLWithString:@"https://example.com/index.html"]
David Quesada
Comment 9 2019-02-28 14:58:24 PST
Created attachment 363264 [details] Patch for landing
WebKit Commit Bot
Comment 10 2019-02-28 15:37:48 PST
Comment on attachment 363264 [details] Patch for landing Clearing flags on attachment: 363264 Committed r242236: <https://trac.webkit.org/changeset/242236>
WebKit Commit Bot
Comment 11 2019-02-28 15:37:50 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.