mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 312763, page setup settings aren't saved or used on the Mac. Save native print settings after page setup. r=mano
This commit is contained in:
parent
aef01712c9
commit
929c7881fd
@ -53,6 +53,12 @@ var PrintUtils = {
|
||||
var PRINTPROMPTSVC = Components.classes["@mozilla.org/embedcomp/printingprompt-service;1"]
|
||||
.getService(Components.interfaces.nsIPrintingPromptService);
|
||||
PRINTPROMPTSVC.showPageSetup(window, printSettings, null);
|
||||
if (gSavePrintSettings) {
|
||||
// Page Setup data is a "native" setting on the Mac
|
||||
var PSSVC = Components.classes["@mozilla.org/gfx/printsettings-service;1"]
|
||||
.getService(Components.interfaces.nsIPrintSettingsService);
|
||||
PSSVC.savePrintSettingsToPrefs(printSettings, true, printSettings.kInitSaveNativeData);
|
||||
}
|
||||
} catch (e) {
|
||||
dump("showPageSetup "+e+"\n");
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user