зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1655674: Prevent nsPrintJob::FinishPrintPreview running twice by checking mIsCreatingPrintPreview. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D86320
This commit is contained in:
Родитель
8aa2e27c24
Коммит
ff0078c4dd
|
@ -2693,8 +2693,10 @@ nsresult nsPrintJob::FinishPrintPreview() {
|
||||||
|
|
||||||
#ifdef NS_PRINT_PREVIEW
|
#ifdef NS_PRINT_PREVIEW
|
||||||
|
|
||||||
if (!mPrt) {
|
// If mPrt is null we've already finished with print preview. If mPrt is not
|
||||||
/* we're already finished with print preview */
|
// null but mIsCreatingPrintPreview is false FinishPrintPreview must have
|
||||||
|
// already failed due to DocumentReadyForPrinting failing.
|
||||||
|
if (!mPrt || !mIsCreatingPrintPreview) {
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче