Don't call RemoteMainFrameHost::RouteCloseEvent() on unbound remote
It seems possible that a race condition to happen between WebViewImpl's CloseWindowSoon() schedules a call to DoDeferredCloseWindowSoon() and that method actually being called: even though WebViewImpl will be alive (otherwise the weak pointer would have prevented that callback from being called), WebViewImpl::DidDetachRemoteMainFrame() might have been called in between those two points, unbinding the remote and causing the issue reported as part of crbug.com/1127329. Bug: 1127329 Change-Id: I189fc1b38f315dc420d97eda5b5c01d346db8033 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2409499Reviewed-by:Kentaro Hara <haraken@chromium.org> Commit-Queue: Mario Sanchez Prada <mario@igalia.com> Cr-Commit-Position: refs/heads/master@{#806730}
Showing
Please register or sign in to comment