Commit 1771428f authored by vkuzkokov's avatar vkuzkokov Committed by Commit bot

[DevTools] Fix potential crash in RenderFrameDevToolsAgentHost

BUG=483693

Review URL: https://codereview.chromium.org/1132913004

Cr-Commit-Position: refs/heads/master@{#330286}
parent 663f86d0
......@@ -417,6 +417,7 @@ void RenderFrameDevToolsAgentHost::SetRenderFrameHost(RenderFrameHost* rfh) {
void RenderFrameDevToolsAgentHost::ClearRenderFrameHost() {
DCHECK(render_frame_host_);
render_frame_host_ = nullptr;
WebContentsObserver::Observe(nullptr);
dom_handler_->SetRenderFrameHost(nullptr);
if (emulation_handler_)
emulation_handler_->SetRenderFrameHost(nullptr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment