[omnibox] Steady State Elisions: Fix bug with End Key and intranet URLs
Currently, if the user presses an End Key on an intranet URL with no path, i.e. "https://foobar" elided to "foobar/", the cursor position will not end up in the right place. This is because the elided form is not a strict substring of the full formatted URL. This CL fixes this corner case and adds a test. Bug: 883310 Change-Id: Id3bb4c24da05dc8de3b2703edc5b12c1f2e3cab4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1759230 Commit-Queue: Tommy Li <tommycli@chromium.org> Reviewed-by:manuk hovanesian <manukh@chromium.org> Cr-Commit-Position: refs/heads/master@{#688156}
Showing
Please register or sign in to comment