- 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
auto* web_preferences = WebContentsPreferences::From(ontents());
  DCHECK(web_preferences);
  web_preferences->preference()->SetKey("ignoreMenuShortcuts",
                                        base::Value(ignore));
}
void WebContents::SetAudioMuted(bool muted) {
  ontents()->SetAudioMuted(muted);
}
bool WebContents::IsAudioMuted() {
  return ontents()->IsAudioMuted();
}
bool WebContents::IsCurrentlyAudible() {
  return ontents()->IsCurrentlyAudible();
}
#if BUILDFLAG(ENABLE_PRINTING)
void WebContents::OnGetDefaultPrinter(
    base::Value print_settings,
    printing::CompletionCallback print_callback,
    base::string16 device_name,
    bool silent,
    base::string16 default_printer) {
   The content::WebContents might be already deleted at this point, and the