Highlight text fragment directives on page reload
Fix the behavior where fragment anchors were only kept alive if a scroll was needed, as is the behavior of element fragment anchors. This caused text fragment anchors not to be kept alive and we didn't highlight on reload. Note that *sometimes* we would highlight on reload, due to a race condition with fragment anchors, where we process the fragment before restoring scroll position (which is where should_scroll becomes false), see crbug/839292. This change makes it so we highlight on reload independent of whether a scroll is needed. Bug: 932551 Change-Id: I38cc82c4920255d8bcae9f8b55ac80f24d1465da Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1864714 Commit-Queue: David Bokan <bokan@chromium.org> Reviewed-by:David Bokan <bokan@chromium.org> Cr-Commit-Position: refs/heads/master@{#706847}
Showing
Please register or sign in to comment