- 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
if (Browser::Get()->is_shutting_down() || IsGuest() ||
      type_ == Type::kBrowserView) {
    delete this;
  } else {
    base::PostTask(FROM_HERE, {content::BrowserThread::UI},
                   base::BindOnce(
                       [](base::WeakPtr<WebContents> contents) {
                         if (contents)
                           delete contents.get();
                       },
                       GetWeakPtr()));
  }
}
bool WebContents::DidAddMessageToConsole(