- Electron version:
  1.3.3
- Operating system:
  OSX El Capitan 10.11.6

The following code crashes Electron. The dev tools don't open, but the HTML element highlights like it is open.

``` javascript
selfBrowserWindow.webContents.openDevTools({mode: 'detach'})
selfBrowserWindow.inspectElement(rightClickPosition.x, rightClickPosition.y)
```

The reason I'm doing this is because I want to open the dev tools detached, then inspect. Calling inspectElement first will open the dev tools docked by default.

atom/browser/api/atom_api_web_contents.cc
v8::Isolate* isolate, content::WebContents* web_contents) {
  
  auto existing = TrackableObject::FromWrappedClass(isolate, web_contents);
  if (existing)
    return mate::CreateHandle(isolate, static_cast<WebContents*>(existing));
  
  return mate::CreateHandle(isolate, new WebContents(isolate, web_contents));
}
mate::Handle<WebContents> WebContents::Create(
    v8::Isolate* isolate, const mate::Dictionary& options) {
  return mate::CreateHandle(isolate, new WebContents(isolate, options));
}
}  
}  
namespace {
using atom::api::WebContents;
void Initialize(v8::Local<v8::Object> exports, v8::Local<v8::Value> unused,
                v8::Local<v8::Context> context, void* priv) {
  v8::Isolate* isolate = context->GetIsolate();
  mate::Dictionary dict(isolate, exports);
  dict.Set("WebContents", WebContents::GetConstructor(isolate)->GetFunction());
  dict.SetMethod("create", &WebContents::Create);
  dict.SetMethod("fromId", &mate::TrackableObject<WebContents>::FromWeakMapID);
  dict.SetMethod("getAllWebContents",
                 &mate::TrackableObject<WebContents>::GetAll);
}
}  
NODE_MODULE_CONTEXT_AWARE_BUILTIN(atom_browser_web_contents, Initialize)