- 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
ElectronBrowserContext* browser_context,
                                      bool is_guest) {
  browser_context_ = browser_context;
  ontents->SetDelegate(this);
#if BUILDFLAG(ENABLE_PRINTING)
  PrintPreviewMessageHandler::CreateForWebContents(ontents);
  printing::PrintViewManagerBasic::CreateForWebContents(ontents);
  printing::CreateCompositeClientIfNeeded(ontents,
                                          browser_context->GetUserAgent());
#endif
#if BUILDFLAG(ENABLE_PDF_VIEWER)
  pdf::PDFWebContentsHelper::CreateForWebContentsWithClient(
      ontents, std::make_unique<ElectronPDFWebContentsHelperClient>());
#endif
  
  auto* web_preferences = WebContentsPreferences::From(ontents);
  offscreen_ =
      web_preferences && web_preferences->IsEnabled(options::kOffscreen);
  
  inspectable_ontents_.reset(new InspectableWebContents(
      ontents, browser_context->prefs(), is_guest));
  inspectable_ontents_->SetDelegate(this);
}
WebContents::~WebContents() {