diff --git a/shell/browser/api/electron_api_web_frame_main.cc b/shell/browser/api/electron_api_web_frame_main.cc index 89b0976a3b25..d5d9f856cb0a 100644 --- a/shell/browser/api/electron_api_web_frame_main.cc +++ b/shell/browser/api/electron_api_web_frame_main.cc @@ -102,6 +102,7 @@ void WebFrameMain::UpdateRenderFrameHost(content::RenderFrameHost* rfh) { // Should only be called when swapping frames. DCHECK(render_frame_); render_frame_ = rfh; + renderer_api_.reset(); } bool WebFrameMain::CheckRenderFrame() const {