- 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
const gin_helper::Dictionary& options) {
  WebContentsZoomController::CreateForWebContents(ontents);
  zoom_controller_ = WebContentsZoomController::FromWebContents(ontents);
  double zoom_factor;
  if (options.Get(options::kZoomFactor, &zoom_factor))
    zoom_controller_->SetDefaultZoomFactor(zoom_factor);
}
void WebContents::InitWithSessionAndOptions(
    v8::Isolate* isolate,
    std::unique_ptr<content::WebContents> owned_ontents,
    gin::Handle<api::Session> session,
    const gin_helper::Dictionary& options) {
  Observe(owned_ontents.get());
  
  
  
  InitWithWebContents(owned_ontents.release(), session->browser_context(),
                      IsGuest());
  inspectable_ontents_->GetView()->SetDelegate(this);
  auto* prefs = ontents()->GetMutableRendererPrefs();