Bug 546270: Use SetupSilentPrinting() to initialize mGTKPrinter for window.print() calls. r=roc

This commit is contained in:
Martin Stransky 2010-03-10 12:33:35 -08:00
parent 17b007decc
commit b05c4d0c82

View File

@ -4531,6 +4531,13 @@ nsGlobalWindow::Print()
if (printSettingsAreGlobal) {
printSettingsService->GetGlobalPrintSettings(getter_AddRefs(printSettings));
if (printSettings) {
// Call any code that requires a run of the event loop.
EnterModalState();
printSettings->SetupSilentPrinting();
LeaveModalState();
}
nsXPIDLString printerName;
printSettingsService->GetDefaultPrinterName(getter_Copies(printerName));
if (printerName)