From 19f681131210326a6174867394b34e3d03fd6d46 Mon Sep 17 00:00:00 2001 From: minggo Date: Tue, 6 Sep 2016 11:08:50 +0800 Subject: [PATCH] initialize disable_devtools_ --- atom/browser/api/atom_api_web_contents.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/atom/browser/api/atom_api_web_contents.cc b/atom/browser/api/atom_api_web_contents.cc index 1defd8308a2..77da81fdab9 100644 --- a/atom/browser/api/atom_api_web_contents.cc +++ b/atom/browser/api/atom_api_web_contents.cc @@ -261,7 +261,8 @@ WebContents::WebContents(v8::Isolate* isolate, embedder_(nullptr), type_(REMOTE), request_id_(0), - background_throttling_(true) { + background_throttling_(true), + disable_devtools_(false) { web_contents->SetUserAgentOverride(GetBrowserContext()->GetUserAgent()); Init(isolate); @@ -273,7 +274,8 @@ WebContents::WebContents(v8::Isolate* isolate, : embedder_(nullptr), type_(BROWSER_WINDOW), request_id_(0), - background_throttling_(true) { + background_throttling_(true), + disable_devtools_(false) { // Read options. options.Get("backgroundThrottling", &background_throttling_);