mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 14:25:52 +00:00
Bug 546270: Use SetupSilentPrinting() to initialize mGTKPrinter for window.print() calls. r=roc
This commit is contained in:
parent
17b007decc
commit
b05c4d0c82
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user