RESOLVED WONTFIX 174181
API::NavigationAction should know how the navigation was initiated; add API property to WKNavigationAction
https://bugs.webkit.org/show_bug.cgi?id=174181
Summary API::NavigationAction should know how the navigation was initiated; add API p...
Daniel Bates
Reported 2017-07-05 15:39:18 PDT
A navigation can be initiated either from API (on Mac/iOS -[WKWebView goBack]) or web content (e.g. a user clicking on a hyperlink). We should pass such information to the embedding client when requesting whether to perform the navigation so that it can make an informed decision. Although an embedding client can determine that a navigation action was triggered by API by checking if the API::NavigationAction::sourceFrame is nullptr it would be less error prone to add explicit API to query the source of the navigation action.
Attachments
Radar WebKit Bug Importer
Comment 1 2017-07-05 15:39:50 PDT
Daniel Bates
Comment 2 2017-07-07 12:21:13 PDT
After thinking about this some more it seems a excessive to expose API for the initiator type. Marking this as RESOLVED WONTFIX.
Note You need to log in before you can comment on or make changes to this bug.