mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: child window may have opener removed (#38910)
This commit is contained in:
@@ -63,7 +63,7 @@ void ElectronRenderFrameObserver::DidClearWindowObject() {
|
||||
// Check DidInstallConditionalFeatures below for the background.
|
||||
auto* web_frame =
|
||||
static_cast<blink::WebLocalFrameImpl*>(render_frame_->GetWebFrame());
|
||||
if (has_delayed_node_initialization_ && web_frame->Opener() &&
|
||||
if (has_delayed_node_initialization_ &&
|
||||
!web_frame->IsOnInitialEmptyDocument()) {
|
||||
v8::Isolate* isolate = blink::MainThreadIsolate();
|
||||
v8::HandleScope handle_scope(isolate);
|
||||
|
||||
Reference in New Issue
Block a user