Fix HistoryTabHelper::DidFinishNavigation crash.
Per DidFinishNavigation documentation, this callback can be called for replaced navigations, in which case NavigationContext::HasCommitted will return false. This CL adds an early return to HistoryTabHelper::DidFinishNavigation if the navigation was not committed. Bug: 813024 Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs Change-Id: I7a0a1f180faae9715b4992d3f7b810e3287a7cda Reviewed-on: https://chromium-review.googlesource.com/984376Reviewed-by:Sergio Collazos <sczs@chromium.org> Commit-Queue: Eugene But <eugenebut@chromium.org> Cr-Commit-Position: refs/heads/master@{#547043}
Showing
Please register or sign in to comment