- 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 false;
  DCHECK(inspectable_ontents_);
  return inspectable_ontents_->IsDevToolsViewShowing();
}
bool WebContents::IsDevToolsFocused() {
  if (type_ == Type::kRemote)
    return false;
  DCHECK(inspectable_ontents_);
  return inspectable_ontents_->GetView()->IsDevToolsViewFocused();
}
void WebContents::EnableDeviceEmulation(
    const blink::DeviceEmulationParams& params) {
  if (type_ == Type::kRemote)
    return;
  DCHECK(ontents());
  auto* frame_host = ontents()->GetMainFrame();
  if (frame_host) {
    auto* widget_host_impl =
        frame_host ? static_cast<content::RenderWidgetHostImpl*>(
                         frame_host->GetView()->GetRenderWidgetHost())
                   : nullptr;
    if (widget_host_impl) {
      auto& frame_widget = widget_host_impl->GetAssociatedFrameWidget();
      frame_widget->EnableDeviceEmulation(params);
    }
  }
}
void WebContents::DisableDeviceEmulation() {