Replace DCHECK with 'if' for mismatching NavigationContext
Currently we assume that if a NavigationContext can be found when "decidePolicyForNavigationAction" is invoked, the navigation should be either user-initiated or JS back-forward. However this can be wrong if the web page uses JS to load the same URL during the navigation. The root cause here is that we are matching URL to find the NavigationContext for WKNavigationAction, which is not reliable. Bug: 1000309,1003467 Change-Id: I7163474df5ffde9cf784ef348f48e652ca878df3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1807832Reviewed-by:Eugene But <eugenebut@chromium.org> Commit-Queue: Yi Su <mrsuyi@chromium.org> Cr-Commit-Position: refs/heads/master@{#697511}
Showing
Please register or sign in to comment