- 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
ontents()->Redo();
}
void WebContents::Cut() {
  ontents()->Cut();
}
void WebContents::Copy() {
  ontents()->Copy();
}
void WebContents::Paste() {
  ontents()->Paste();
}
void WebContents::PasteAndMatchStyle() {
  ontents()->PasteAndMatchStyle();
}
void WebContents::Delete() {
  ontents()->Delete();
}
void WebContents::SelectAll() {
  ontents()->SelectAll();
}
void WebContents::Unselect() {
  ontents()->CollapseSelection();
}
void WebContents::Replace(const base::string16& word) {
  ontents()->Replace(word);
}
void WebContents::ReplaceMisspelling(const base::string16& word) {
  ontents()->ReplaceMisspelling(word);
}
uint32_t WebContents::FindInPage(gin::Arguments* args) {