зеркало из https://github.com/mozilla/gecko-dev.git
added printWithSettings method for printing with PrintSettings
Bug 118352 r=dcone sr=jst
This commit is contained in:
Родитель
981b9a3a39
Коммит
b3f69137a2
|
@ -81,7 +81,7 @@ function BrowserPrintPreview()
|
|||
}
|
||||
// using _content.printPreview() until printing becomes scriptable on docShell
|
||||
try {
|
||||
_content.printPreview(gPrintSettings, false);
|
||||
_content.printPreview(gPrintSettings);
|
||||
|
||||
} catch (e) {
|
||||
// Pressing cancel is expressed as an NS_ERROR_FAILURE return value,
|
||||
|
@ -149,7 +149,7 @@ function BrowserPrint()
|
|||
}
|
||||
|
||||
// using _content.print() until printing becomes scriptable on docShell
|
||||
_content.print(gPrintSettings, false);
|
||||
_content.printWithSettings(gPrintSettings);
|
||||
|
||||
// now set our setting into the global settings
|
||||
// after the changes were made
|
||||
|
|
Загрузка…
Ссылка в новой задаче