Simplified domains: Only call GetPreviousURL on committed/non-error navigations
OmniboxViewViews::DidFinishNavigation calls GetPreviousURL() to determine if the URL has changed besides the fragment, in which case the full URL is re-shown. Calling GetPreviousURL() on non-committed or error page navigations fails a DCHECK. This CL thus adds special checks for whether the navigation has committed or is an error page. Speculative fix for https://crbug.com/1127797. Bug: 1127797 Test: CQ Change-Id: I245440ea082863b1337c104d15f062e4eb69e378 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2409968Reviewed-by:Tommy Li <tommycli@chromium.org> Commit-Queue: Emily Stark <estark@chromium.org> Cr-Commit-Position: refs/heads/master@{#807203}
Showing
Please register or sign in to comment