Electron crashes if user clicks Dev Tools & Zoom options #10697

This commit is contained in:
Ahmed Mohamed Ali 2017-10-21 22:21:24 +02:00
parent 4ffb6c5f75
commit 463260b249
2 changed files with 15 additions and 6 deletions

View file

@ -385,6 +385,9 @@ class WebContents : public mate::TrackableObject<WebContents>,
// get the zoom level.
void OnGetZoomLevel(IPC::Message* reply_msg);
void InitZoomController(content::WebContents* web_contents,
const mate::Dictionary& options);
v8::Global<v8::Value> session_;
v8::Global<v8::Value> devtools_web_contents_;
v8::Global<v8::Value> debugger_;