Browse Source

fix: WebFrameMain mojo pipe not reset (#30629)

Samuel Maddock 3 years ago
parent
commit
cb7c16cb2d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      shell/browser/api/electron_api_web_frame_main.cc

+ 1 - 0
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 {