diff --git a/browser/components/urlbar/QuickActionsLoaderDefault.sys.mjs b/browser/components/urlbar/QuickActionsLoaderDefault.sys.mjs index 5b1daa4173679..899fde1367780 100644 --- a/browser/components/urlbar/QuickActionsLoaderDefault.sys.mjs +++ b/browser/components/urlbar/QuickActionsLoaderDefault.sys.mjs @@ -1310,6 +1310,144 @@ onPick : restartBrowser } +savepdf +: +{ +l10nCommands +: +[ +" +quickactions +- +cmd +- +savepdf +" +] +label +: +" +quickactions +- +savepdf +" +icon +: +" +chrome +: +/ +/ +global +/ +skin +/ +icons +/ +print +. +svg +" +onPick +: +( +) += +> +{ +/ +/ +This +writes +over +the +users +last +used +printer +which +we +/ +/ +should +not +do +. +Refactor +to +launch +the +print +preview +with +/ +/ +custom +settings +. +let +win += +lazy +. +BrowserWindowTracker +. +getTopWindow +( +) +; +Cc +[ +" +mozilla +. +org +/ +gfx +/ +printsettings +- +service +; +1 +" +] +. +getService +( +Ci +. +nsIPrintSettingsService +) +. +maybeSaveLastUsedPrinterNameToPrefs +( +win +. +PrintUtils +. +SAVE_TO_PDF_PRINTER +) +; +win +. +PrintUtils +. +startPrintWindow +( +win +. +gBrowser +. +selectedBrowser +. +browsingContext +{ +} +) +; +} +} screenshot : { diff --git a/browser/locales/en-US/browser/browser.ftl b/browser/locales/en-US/browser/browser.ftl index d3b78526e7821..387085a570712 100644 --- a/browser/locales/en-US/browser/browser.ftl +++ b/browser/locales/en-US/browser/browser.ftl @@ -2493,6 +2493,32 @@ print print # Opens +the +print +dialog +at +the +save +to +PDF +option +quickactions +- +savepdf += +Save +page +as +PDF +quickactions +- +cmd +- +savepdf += +pdf +# +Opens a new private