- 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
content::WebContents* ontents,
                                        extensions::ViewType view_type) {
  
  type_ = GetTypeFromViewType(view_type);
  if (GetType() == Type::kRemote)
    return;
  
  Observe(ontents);
  InitWithWebContents(ontents, GetBrowserContext(), IsGuest());
  inspectable_ontents_->GetView()->SetDelegate(this);
  SecurityStateTabHelper::CreateForWebContents(ontents);
}
#endif
void WebContents::InitWithWebContents(content::WebContents* ontents,