need to check BUSY_FLAGS_PAGE_LOADING before printing
Bug 157632 r=dcone sr=jst a=scc
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user