Move reset state code to DidFinishNavigation
A navigation might start but not commit, that is the navigation fails and the page will not change. A good example thereof is a navigation that returns a 204. Still in this case some state will have been cleared in the DidStartNavigation method. Which means the state shows does no longer correspond to the page we are on. There is really no reason to not wait until DidNavigationFinish to reset all this state, so this patches does so. The only exception are cookies, as these might get accessed during the navigation. A follow up patch will take care of these. Bug: 998171 Change-Id: I6146986a8b146128fad388da88f4fd2238571822 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1895512Reviewed-by:Balazs Engedy <engedy@chromium.org> Reviewed-by:
Alexander Timin <altimin@chromium.org> Reviewed-by:
Andy Paicu <andypaicu@chromium.org> Commit-Queue: Andy Paicu <andypaicu@chromium.org> Cr-Commit-Position: refs/heads/master@{#746704}
Showing
Please register or sign in to comment