mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 14:52:16 +00:00
Bug 1287446: Check and add nsIPrintProgressParams and print progress listener separately in nsPrintEngine::ShowPrintProgress. r=tnikkel
MozReview-Commit-ID: GngheT4Mizd
This commit is contained in:
parent
6ae2ecbc02
commit
5df096d268
@ -1072,8 +1072,11 @@ nsPrintEngine::ShowPrintProgress(bool aIsForPrinting, bool& aDoNotify)
|
||||
getter_AddRefs(mPrt->mPrintProgressParams),
|
||||
&aDoNotify);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
if (printProgressListener && mPrt->mPrintProgressParams) {
|
||||
if (printProgressListener) {
|
||||
mPrt->mPrintProgressListeners.AppendObject(printProgressListener);
|
||||
}
|
||||
|
||||
if (mPrt->mPrintProgressParams) {
|
||||
SetDocAndURLIntoProgress(mPrt->mPrintObject, mPrt->mPrintProgressParams);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user