Skip to content

Commit

Permalink
fix: crash when creating interface for speculative frame
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelmaddock committed Apr 25, 2022
1 parent 6a1748d commit 3431a69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell/browser/api/electron_api_web_frame_main.cc
Expand Up @@ -316,7 +316,7 @@ std::vector<content::RenderFrameHost*> WebFrameMain::FramesInSubtree() const {
}

void WebFrameMain::Connect() {
if (pending_receiver_) {
if (pending_receiver_ && render_frame_->IsRenderFrameCreated()) {
render_frame_->GetRemoteInterfaces()->GetInterface(
std::move(pending_receiver_));
}
Expand Down

0 comments on commit 3431a69

Please sign in to comment.