- 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
const GURL& url,
                              int error_code) {
  bool is_main_frame = !render_frame_host->GetParent();
  int frame_process_id = render_frame_host->GetProcess()->GetID();
  int frame_routing_id = render_frame_host->GetRoutingID();
  Emit("did-fail-load", error_code, "", url, is_main_frame, frame_process_id,
       frame_routing_id);
}
void WebContents::DidStartLoading() {
  Emit("did-start-loading");
}
void WebContents::DidStopLoading() {
  auto* web_preferences = WebContentsPreferences::From(ontents());
  if (web_preferences &&
      web_preferences->IsEnabled(options::kEnablePreferredSizeMode))
    ontents()->GetRenderViewHost()->EnablePreferredSizeMode();
  Emit("did-stop-loading");
}
bool WebContents::EmitNavigationEvent(