* 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
mate::Dictionary margins;
  if (options.Get("margins", &margins)) {
    printing::MarginType margin_type = printing::DEFAULT_MARGINS;
    margins.Get("marginType", &margin_type);
    settings.SetInteger(printing::kSettingMarginsType, margin_type);
    if (margin_type == printing::CUSTOM_MARGINS) {
      int top = 0;
      margins.Get("top", &top);
      settings.SetInteger(printing::kSettingMarginTop, top);
      int bottom = 0;
      margins.Get("bottom", &bottom);
      settings.SetInteger(printing::kSettingMarginBottom, bottom);
      int left = 0;
      margins.Get("left", &left);
      settings.SetInteger(printing::kSettingMarginLeft, left);
      int right = 0;
      margins.Get("right", &right);
      settings.SetInteger(printing::kSettingMarginRight, right);
    }
  } else {
    settings.SetInteger(printing::kSettingMarginsType,
                        printing::DEFAULT_MARGINS);
  }
  settings.SetBoolean(printing::kSettingHeaderFooterEnabled, false);
  
  bool print_color = true;
  options.Get("color", &print_color);
  int color_setting = print_color ? printing::COLOR : printing::GRAY;
  settings.SetInteger(printing::kSettingColor, color_setting);
  bool landscape = false;