mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
mac: InspectableWebContents should be destroyed before release NSWindow.
Fixes atom/atom#1841.
This commit is contained in:
@@ -57,12 +57,12 @@ NativeWindow::NativeWindow(content::WebContents* web_contents,
|
||||
base::DictionaryValue* options)
|
||||
: content::WebContentsObserver(web_contents),
|
||||
has_frame_(true),
|
||||
inspectable_web_contents_(
|
||||
brightray::InspectableWebContents::Create(web_contents)),
|
||||
is_closed_(false),
|
||||
node_integration_("except-iframe"),
|
||||
has_dialog_attached_(false),
|
||||
weak_factory_(this),
|
||||
inspectable_web_contents_(
|
||||
brightray::InspectableWebContents::Create(web_contents)) {
|
||||
weak_factory_(this) {
|
||||
options->GetBoolean(switches::kFrame, &has_frame_);
|
||||
|
||||
#if defined(OS_MACOSX)
|
||||
|
||||
Reference in New Issue
Block a user