* Electron Version 6.0.0-beta.12
* Operating System Windows 10 64 bit

Expected Behavior
webContents.print() should send print a job to the specified printer

Actual behavior
Nothing happens. Callback gets called much latter, for example on program exit.

To Reproduce
let print_options = { 
    silent: true,
    printBackground: true,
    deviceName: barcode_device_name 
}
print_window.webContents.print(print_options, (data) => {
    console.log(`print result: ${data}`)
})

Related to #17260
shell/browser/api/atom_api_web_contents.cc
const content::LoadCommittedDetails& details) {
  Emit("navigation-entry-commited", details.entry->GetURL(),
       details.is_same_document, details.did_replace_entry);
}
void WebContents::SetBackgroundThrottling(bool allowed) {
  background_throttling_ = allowed;
  auto* contents = web_contents();
  if (!contents) {
    return;
  }
  auto* render_view_host = contents->GetRenderViewHost();
  if (!render_view_host) {
    return;
  }
  auto* render_process_host = render_view_host->GetProcess();
  if (!render_process_host) {
    return;
  }
  auto* render_widget_host_impl = content::RenderWidgetHostImpl::FromID(
      render_process_host->GetID(), render_view_host->GetRoutingID());
  if (!render_widget_host_impl) {
    return;
  }
  render_widget_host_impl->disable_hidden_ = !background_throttling_;
  if (render_widget_host_impl->is_hidden()) {
    render_widget_host_impl->WasShown(base::nullopt);
  }
}
int WebContents::GetProcessID() const {