Bug 1620314 - Disable print-progress dialog. It would fail to open and abort the print. r=mkmelin
authorBen Campbell <benc@thunderbird.net>
Thu, 26 Mar 2020 13:53:36 +1300
changeset 86388 c447fb3ea5473cf318bacfa1121d9ad63d0d32ac
parent 86387 326e6f99df0ae67a539d4a035e7f5c47cdf5f839
child 86389 14fc66cf01c92b40f1fc2b518ba71fcadc5c8bb2
push id10717
push userbenc@thunderbird.net
push dateFri, 27 Mar 2020 02:13:08 +0000
treeherdertry-comm-central@f505e51d8741 [default view] [failures only]
reviewersmkmelin
bugs1620314
Bug 1620314 - Disable print-progress dialog. It would fail to open and abort the print. r=mkmelin
mailnews/base/src/nsMsgPrintEngine.cpp
--- a/mailnews/base/src/nsMsgPrintEngine.cpp
+++ b/mailnews/base/src/nsMsgPrintEngine.cpp
@@ -544,16 +544,17 @@ void nsMsgPrintEngine::PrintMsgWindow() 
 
       nsresult rv = NS_ERROR_FAILURE;
       if (mIsDoingPrintPreview) {
         if (mStartupPPObs) {
           rv = mStartupPPObs->Observe(nullptr, nullptr, nullptr);
         }
       } else {
         mPrintSettings->SetPrintSilent(mCurrentlyPrintingURI != 0);
+        mPrintSettings->SetShowPrintProgress(false);
         rv = webBrowserPrint->Print(mPrintSettings,
                                     (nsIWebProgressListener *)this);
       }
 
       if (NS_FAILED(rv)) {
         webBrowserPrint = nullptr;
         mContentViewer = nullptr;
         bool isPrintingCancelled = false;