Fix webview crash loop
In the NOTIFICATION_RENDERER_PROCESS_CLOSED call, some webview apps can synchronously create a new WebContents and load a page into it. This breaks content's internal tracking of IPC state which causes the new renderer to crash again, causing a crash loop. The root cause is RFHI::OnRenderProcessGone resets the mojo connection tracking in the new WebContents, which is wrong because the new WebContents/RFHI was never connected to the old renderer process. Fix this by somewhat reducing reentrancy by moving NOTIFICATION_RENDERER_PROCESS_CLOSED after RFHI::OnRenderProcessGone to avoid this situation. Bug: 946758 Change-Id: I7be5a66631688dfb9ed77ef30b518e3149c09af2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1545700 Commit-Queue: Bo <boliu@chromium.org> Reviewed-by:Alex Moshchuk <alexmos@chromium.org> Cr-Commit-Position: refs/heads/master@{#646245}
Showing
Please register or sign in to comment