- 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
const auto view = web_contents()->GetRenderWidgetHostView();
  if (view)
    view->EndFrameSubscription();
}
void WebContents::StartDrag(const mate::Dictionary& item,
                            mate::Arguments* args) {
  base::FilePath file;
  std::vector<base::FilePath> files;
  if (!item.Get("files", &files) && item.Get("file", &file)) {
    files.push_back(file);
  }
  mate::Handle<NativeImage> icon;
  if (!item.Get("icon", &icon) && !file.empty()) {
    
  }
  
  if (icon.IsEmpty()) {
    args->ThrowError("icon must be set");
    return;
  }
  
  if (!files.empty()) {
    base::MessageLoop::ScopedNestableTaskAllower allow(
        base::MessageLoop::current());
    DragFileItems(files, icon->image(), web_contents()->GetNativeView());
  } else {
    args->ThrowError("There is nothing to drag");
  }
}
void WebContents::CapturePage(mate::Arguments* args) {