From ceb1e9f668e6ed5cd3da1ba413a30f3d0f774ea6 Mon Sep 17 00:00:00 2001 From: "dholbert%cs.stanford.edu" Date: Tue, 4 Mar 2008 06:11:54 +0000 Subject: [PATCH] Backing out bug 407080 to investigate breakage of mochitest test_bug396024.html git-svn-id: svn://10.0.0.236/trunk@246978 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/printing/nsPrintEngine.cpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/mozilla/layout/printing/nsPrintEngine.cpp b/mozilla/layout/printing/nsPrintEngine.cpp index 8cea7d8c9a4..291d53a9703 100644 --- a/mozilla/layout/printing/nsPrintEngine.cpp +++ b/mozilla/layout/printing/nsPrintEngine.cpp @@ -729,20 +729,6 @@ nsPrintEngine::PrintPreview(nsIPrintSettings* aPrintSettings, nsIDOMWindow *aChildDOMWin, nsIWebProgressListener* aWebProgressListener) { - // Get the DocShell and see if it is busy - // (We can't Print Preview this document if it is still busy) - nsCOMPtr docShell(do_QueryInterface(mContainer)); - NS_ASSERTION(docShell, "This has to be a docshell"); - - PRUint32 busyFlags = nsIDocShell::BUSY_FLAGS_NONE; - if (NS_FAILED(docShell->GetBusyFlags(&busyFlags)) || - busyFlags != nsIDocShell::BUSY_FLAGS_NONE) { - CloseProgressDialog(aWebProgressListener); - ShowPrintErrorDialog(NS_ERROR_GFX_PRINTER_DOC_IS_BUSY_PP, PR_FALSE); - return NS_ERROR_FAILURE; - } - - // Document is not busy -- go ahead with the Print Preview return CommonPrint(PR_TRUE, aPrintSettings, aWebProgressListener); }