[Webkit-unassigned] [Bug 165502] [iOS] WKWebView should not allow app links to be opened on back or forward navigation

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Dec 7 18:01:49 PST 2016


https://bugs.webkit.org/show_bug.cgi?id=165502

--- Comment #6 from Sam Weinig <sam at webkit.org> ---
(In reply to comment #5)
> (In reply to comment #4)
> > Comment on attachment 296357 [details]
> > Patch (with style fixed) for [iOS] WKWebView should not allow app links to
> > be opened on back or forward navigation
> > 
> > I wonder if a better way to do this would be to update
> > API::NavigationAction::shouldOpenAppLinks() to check that navigationType is
> > not NavigationType::BackForward.  I'm actually not sure, Dan?
> 
> That’s possible, but that would be encoding (admittedly trivial) policy
> logic into what is currently a data container. I think, however, that
> WebPageProxy::decidePolicyForNavigationAction, which is where we currently
> initialize the NavigationAction, would be a good place to implement this
> policy. I agree that setting the
> m_shouldSuppressAppLinksInNextNavigationPolicyDecision in advance is
> unnecessarily complex and fragile.

One thing I am also not sure of is what history.back()/history.forward()/history.go() should/would here. Probably worth testing.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20161208/12b812cd/attachment.html>


More information about the webkit-unassigned mailing list