- 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 (type_ == Type::kRemote)
    return;
  if (!enable_devtools_)
    return;
  DCHECK(inspectable_ontents_);
  if (!inspectable_ontents_->GetDevToolsWebContents())
    OpenDevTools(nullptr);
  inspectable_ontents_->InspectElement(x, y);
}
void WebContents::InspectSharedWorkerById(const std::string& workerId) {
  if (type_ == Type::kRemote)
    return;
  if (!enable_devtools_)
    return;
  for (const auto& agent_host : content::DevToolsAgentHost::GetOrCreateAll()) {
    if (agent_host->GetType() ==
        content::DevToolsAgentHost::kTypeSharedWorker) {
      if (agent_host->GetId() == workerId) {
        OpenDevTools(nullptr);
        inspectable_ontents_->AttachTo(agent_host);
        break;
      }
    }
  }
}
std::vector<scoped_refptr<content::DevToolsAgentHost>>