[omnibox] Fix losing HTTPS for elided URLs when user reloads page
Currently, for elided HTTPS URLs, (omnibox displays 'google.com' instead of 'https://www.google.com'), when the user mouse clicks into the omnibox and presses Enter, we make a request to http://google.com. This is a regression introduced in this CL: https://chromium-review.googlesource.com/c/chromium/src/+/1854501 This CL is a partial revert of that CL. I think the reverted part wasn't necessary to fix the original bug in the first place, and was likely included by mistake. This CL does the partial revert and also enhances our existing unit test to make sure it won't happen again. Bug: 1037889 Change-Id: Ia5e742c02ac35f7b013ce42bc01c1217304ab303 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1990253 Commit-Queue: Tommy Li <tommycli@chromium.org> Reviewed-by:Kevin Bailey <krb@chromium.org> Cr-Commit-Position: refs/heads/master@{#730245}
Showing
Please register or sign in to comment