need to check BUSY_FLAGS_PAGE_LOADING before printing

Bug 157632 r=dcone sr=jst a=scc
This commit is contained in:
rods@netscape.com
2002-07-18 09:09:54 +00:00
parent abfe71eebb
commit c6f2d47fa3
2 changed files with 2 additions and 2 deletions

View File

@@ -6904,7 +6904,7 @@ DocumentViewerImpl::Print(nsIPrintSettings* aPrintSettings,
// Indicate there is a print pending and cache the args for later
PRUint32 busyFlags = nsIDocShell::BUSY_FLAGS_NONE;
if ((NS_FAILED(docShell->GetBusyFlags(&busyFlags)) ||
busyFlags != nsIDocShell::BUSY_FLAGS_NONE) &&
(busyFlags != nsIDocShell::BUSY_FLAGS_NONE && busyFlags & nsIDocShell::BUSY_FLAGS_PAGE_LOADING)) &&
!mPrintDocIsFullyLoaded) {
if (!mPrintIsPending) {
mCachedPrintSettings = aPrintSettings;

View File

@@ -6904,7 +6904,7 @@ DocumentViewerImpl::Print(nsIPrintSettings* aPrintSettings,
// Indicate there is a print pending and cache the args for later
PRUint32 busyFlags = nsIDocShell::BUSY_FLAGS_NONE;
if ((NS_FAILED(docShell->GetBusyFlags(&busyFlags)) ||
busyFlags != nsIDocShell::BUSY_FLAGS_NONE) &&
(busyFlags != nsIDocShell::BUSY_FLAGS_NONE && busyFlags & nsIDocShell::BUSY_FLAGS_PAGE_LOADING)) &&
!mPrintDocIsFullyLoaded) {
if (!mPrintIsPending) {
mCachedPrintSettings = aPrintSettings;