diff --git a/suite/common/utilityOverlay.js b/suite/common/utilityOverlay.js index f242d5e30137..14f63c85b80b 100644 --- a/suite/common/utilityOverlay.js +++ b/suite/common/utilityOverlay.js @@ -125,7 +125,7 @@ function getBrowserURL() { return "chrome://navigator/content/navigator.xul"; } -function goPageSetup(printSettings) +function goPageSetup(domwin, printSettings) { try { if (printSettings == null) { @@ -135,10 +135,12 @@ function goPageSetup(printSettings) // This code calls the printoptions service to bring up the printoptions // dialog. This will be an xp dialog if the platform did not override // the ShowPrintSetupDialog method. - var printOptionsService = Components.classes["@mozilla.org/gfx/printoptions;1"] - .getService(Components.interfaces.nsIPrintOptions); - printOptionsService.ShowPrintSetupDialog(printSettings); - } catch(e) { + var printingPromptService = Components.classes["@mozilla.org/embedcomp/printingprompt-service;1"] + .getService(Components.interfaces.nsIPrintingPromptService); + printingPromptService.showPageSetup(domwin, printSettings); + return true; + } catch(e) { + return false; } }