Fix issue with DOM Distiller viewer when renderer goes away.
If the user navigates away from a distilled web page or the renderer crashes while the DomDistillerViewerSource is still active, a request can still come in. However, using the render_process_id and render_frame_id to find the live renderer (RenderFrameHost) might fail. That case used to be a DCHECK, but since this happens in the wild and is reproducible, this CL removes the DCHECK and instead just bails out early if that happens, since there is no renderer to send the data to. It also fixes another place in the same method where the RenderFrameHost used to be looked up again, but now the one that has been already found is just reused. BUG=421949 Review URL: https://codereview.chromium.org/693053002 Cr-Commit-Position: refs/heads/master@{#302481}
Showing
Please register or sign in to comment