• John Abd-El-Malek's avatar
    Fix Android WebView crash when an app loads a JavaScript URL during navigation. · 4aff0098
    John Abd-El-Malek authored
    When there's an ongoing navigation, if the app loada a JavaScript URL we create
    a temporary NavigationRequest in NavigatorImpl::RequestNavigation. However the
    call to RenderFrameHostManager::GetFrameHostForNavigation was resetting the
    speculative RFH of the original NavigationRequest since the site instance of a
    JavaScript load is always the same as the existing frame.
    
    This is a reland of r523264 with an extra fix to ensure that the RFH is
    initialized.
    
    Bug: 793432
    Change-Id: I7a029d907f5c133c00ce096d9d733cb8194fcd43
    Reviewed-on: https://chromium-review.googlesource.com/822970Reviewed-by: default avatarNasko Oskov <nasko@chromium.org>
    Commit-Queue: John Abd-El-Malek <jam@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#523489}
    4aff0098
render_frame_host_manager.h 37.7 KB