• Francois Doray's avatar
    RC: Generate main frame navigation commit event for navigations to an error page. · cc05ae46
    Francois Doray authored
    For some reason, ResourceCoordinatorTabHelper::DidFinishNavigation()
    currently skips updating the frame tree and notifying the
    PageResourceCoordinator of main frame navigation commit when there is a
    navigation to an error page. This causes multiple problems:
    
    - The error page stays in the LOADING state forever.
    - The main frame URL is not updated in PageCoordinationUnitImpl.
    
    A navigation to an error page is just like a navigation to a normal
    page (the error page has a main frame, a renderer process), so there is
    no reason to have special case for it in
    ResourceCoordinatorTabHelper::DidFinishNavigation().
    
    Bug: 855180
    Change-Id: Ifbe52ce714ef04af574e00041f8b970c13c08f5d
    Reviewed-on: https://chromium-review.googlesource.com/1110697Reviewed-by: default avatarSébastien Marchand <sebmarchand@chromium.org>
    Commit-Queue: François Doray <fdoray@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#569433}
    cc05ae46
tab_helper.cc 6.44 KB