omnibox: Support url unelide for samedoc navigation
Many websites rely on same doc navigation to render different views using pushState/replaceState API, which was originally not considered to unelide URL. This CL enables uneliding for same document navigations with the following considerations: - If the same doc navigation is just a fragment navigation (e.g.) from /foo to /foo#bar, URL should remain in its initial state. - If the same doc navigation is not a fragment navigation (e.g.) from /foo to /foo/bar, URL should be unelided. Also, added tests to check both scenarios, including GetPreviousURL mock in the mock_navigation_handle. Bug: 1096160 Change-Id: Ic051699c9fdb34eaa16e0c586672aae6d8d98b9b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2335675Reviewed-by:Tommy Li <tommycli@chromium.org> Reviewed-by:
Scott Violet <sky@chromium.org> Reviewed-by:
Emily Stark <estark@chromium.org> Commit-Queue: Ernesto García <ernestognw@google.com> Cr-Commit-Position: refs/heads/master@{#794869}
Showing
Please register or sign in to comment