- 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
return v8::Local<v8::Value>::New(isolate, session_);
}
content::WebConbContents::HostWebContents() const {
  if (!embedder_)
    return nullptr;
  return embedder_->ontents();
}
void WebContents::SetEmbedder(const WebContents* embedder) {
  if (embedder) {
    NativeWindow* owner_window = nullptr;
    auto* relay = NativeWindowRelay::FromWebContents(embedder->ontents());
    if (relay) {
      owner_window = relay->GetNativeWindow();
    }
    if (owner_window)
      SetOwnerWindow(owner_window);
    content::RenderWidgetHostView* rwhv =
        ontents()->GetRenderWidgetHostView();
    if (rwhv) {
      rwhv->Hide();
      rwhv->Show();
    }
  }
}
void WebContents::SetDevToolsWebContents(const WebContents* devtools) {
  if (inspectable_ontents_)
    inspectable_ontents_->SetDevToolsWebContents(devtools->ontents());
}
v8::Local<v8::Value> WebContents::GetNativeView(v8::Isolate* isolate) const {