* 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
dpi_settings.Get("vertical", &vertical);
    settings.SetInteger(printing::kSettingDpiVertical, vertical);
  } else {
    settings.SetInteger(printing::kSettingDpiHorizontal, dpi);
    settings.SetInteger(printing::kSettingDpiVertical, dpi);
  }
  auto* print_view_manager =
      printing::PrintViewManagerBasic::FromWebContents(web_contents());
  auto* focused_frame = web_contents()->GetFocusedFrame();
  auto* rfh = focused_frame && focused_frame->HasSelection()
                  ? focused_frame
                  : web_contents()->GetMainFrame();
  print_view_manager->PrintNow(
      rfh,
      std::make_unique<PrintMsg_PrintPages>(rfh->GetRoutingID(), silent,
                                            print_background, settings),
      std::move(callback));
}
std::vector<printing::PrinterBasicInfo> WebContents::GetPrinterList() {
  std::vector<printing::PrinterBasicInfo> printers;
  auto print_backend = printing::PrintBackend::CreateInstance(nullptr);
  {
    
    
    base::ThreadRestrictions::ScopedAllowIO allow_io;
    print_backend->EnumeratePrinters(&printers);
  }
  return printers;
}
v8::Local<v8::Promise> WebContents::PrintToPDF(