[iOS] WKWebView should not allow app links to be opened on back or forward navigation
authorcpugh@apple.com <cpugh@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Dec 2016 22:50:28 +0000 (22:50 +0000)
committercpugh@apple.com <cpugh@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Dec 2016 22:50:28 +0000 (22:50 +0000)
commite3d600b75aaa4cf30bc9bf4e8bb57d1fe7d240c0
tree089e6d1e6d4aff199bd0f4f7a2f9076d8e7c7b87
parentfc55895c80be1b6b6febfa09383d3430a7ca049f
[iOS] WKWebView should not allow app links to be opened on back or forward navigation
https://bugs.webkit.org/show_bug.cgi?id=165502

Reviewed by Dan Bernstein.

* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::decidePolicyForNavigationAction): Add a condition to shouldOpenAppLinks
(which we use when creating a NavigationAction) that the navigationActionData is not a navigation
of type BackForward. This way, we don't open app links when a navigation is done via back or
forward.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@209573 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/WebPageProxy.cpp