- Electron version: 1.2.2
- Operating system: Linux

This is a problem only in linux. It works in OSX.

``` javascript
win.hide()
win.capturePage(function(img){
 // never called
})
```

shell/browser/api/electron_api_web_contents.cc
Emit("devtools-reload-page");
}
void WebContents::DevToolsFocused() {
  Emit("devtools-focused");
}
void WebContents::DevToolsOpened() {
  v8::Isolate* isolate = JavascriptEnvironment::GetIsolate();
  v8::Locker locker(isolate);
  v8::HandleScope handle_scope(isolate);
  DCHECK(inspectable_ontents_);
  auto handle = FromOrCreate(
      isolate, inspectable_ontents_->GetDevToolsWebContents());
  devtools_ontents_.Reset(isolate, handle.ToV8());
   Set inspected tabID.
  base::Value tab_id(ID());
  inspectable_ontents_->CallClientFunction("DevToolsAPI.setInspectedTabId",
                                                &tab_id, nullptr, nullptr);
   Inherit owner window in devtools when it doesn't have one.
  auto* devtools = inspectable_ontents_->GetDevToolsWebContents();
  bool has_window = devtools->GetUserData(NativeWindowRelay::UserDataKey());
  if (owner_window() && !has_window)
    handle->SetOwnerWindow(devtools, owner_window());
  Emit("devtools-opened");
}
void WebContents::DevToolsClosed() {