Restrict TextFragmentAnchor to user or browser initiated navigations.
Only activate the text fragment anchor if the navigation was initiated by the user or browser. This adds a is_browser_initiated bit to CommitNavigationParams to plumb the browser_initiated_ state from the browser to the renderer. Also added TextFragmentAnchorBrowserTests, testing that both user and browser initiated navigations can activate the feature. Bug: 924966 Change-Id: Id262eb6967e0109a06739a27b012466031bbd74b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1638288Reviewed-by:Camille Lamy <clamy@chromium.org> Reviewed-by:
Daniel Cheng <dcheng@chromium.org> Reviewed-by:
David Bokan <bokan@chromium.org> Commit-Queue: Nick Burris <nburris@chromium.org> Cr-Commit-Position: refs/heads/master@{#680536}
Showing
Please register or sign in to comment