Reland "Highlight text fragment directives on page reload"
This is a reland of 8e1e2bb6 Original change's description: > 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} TBR=bokan@chromium.org,nburris@chromium.org Bug: 932551 Change-Id: Ie633b2b4d14348f7452cbf778e914b401c9cd571 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1866625 Commit-Queue: Lan Wei <lanwei@chromium.org> Reviewed-by:Lan Wei <lanwei@chromium.org> Cr-Commit-Position: refs/heads/master@{#707012}
Showing
Please register or sign in to comment