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_);