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: Bug: 925304 Change-Id: If9bedd0f74a428946a9026d142da7fc360fd7138 Reviewed-on: https://chromium-review.googlesource.com/c/1448683 Commit-Queue: Justin Cohen <justincohen@chromium.org> Auto-Submit: Eugene But <eugenebut@chromium.org> Reviewed-by:Justin Cohen <justincohen@chromium.org> Cr-Commit-Position: refs/heads/master@{#628224}
Showing
Please register or sign in to comment