Add special case for to compensate for incorrect autocomplete text
When navigating between two pages, getTextWithAutocomplete() points to the autocompleted text for the previous URL. This screws with the behavior of StatusMediator, so I've added a workaround that checks if the current autocomplete text contains the current url bar text. If it does then we use the autocomplete text, otherwise we just use the UrlBar text. Bug: 1015147 Change-Id: Ie64cb4e1944005ab7273e8b66084033c2401b7ac Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1864027 Commit-Queue: Brandon Wylie <wylieb@chromium.org> Reviewed-by:Ted Choc <tedchoc@chromium.org> Cr-Commit-Position: refs/heads/master@{#707025}
Showing
Please register or sign in to comment