Version: v5.0.5, v5.0.6
JavaScript code: `document.querySelector('iframe').contentWindow.print()`
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;