Reland: Do not call 'navigation committed' callback if there was no pending item to commit.
GetPendingItem can return null inside webView:didCommitNavigation: This is due to crbug.com/925304, which allows to discard pending items by another navigations prematurely. If pending item is null, it means that Navigation Manager will not commit that item and WebStateObservers can crash because they expect to have at least one committed item. This CL leaves navigation as "uncommitted" if there was no pending item inside webView:didCommitNavigation: Original CL: https://chromium-review.googlesource.com/c/1448683 Bug: 925304 Change-Id: I7852da807d183e87d1fd029d75ed63cde2287d7b Reviewed-on: https://chromium-review.googlesource.com/c/1450300 Commit-Queue: Eugene But <eugenebut@chromium.org> Reviewed-by:Justin Cohen <justincohen@chromium.org> Cr-Commit-Position: refs/heads/master@{#628537}
Showing
Please register or sign in to comment