diff --git a/mozilla/layout/base/nsPresShell.cpp b/mozilla/layout/base/nsPresShell.cpp index d55edf70662..cb9cbd8889b 100644 --- a/mozilla/layout/base/nsPresShell.cpp +++ b/mozilla/layout/base/nsPresShell.cpp @@ -2393,7 +2393,7 @@ PresShell::SetPrefNoScriptRule() // see bug #342439 for more details PRBool scriptEnabled = mDocument->IsScriptEnabled() || ((mPresContext->Type() == nsPresContext::eContext_PrintPreview || - mPresContext->Type() == nsPresContext::eContext_Print) && + mPresContext->Type() == nsPresContext::eContext_Print) && NS_PTR_TO_INT32(mDocument->GetProperty( nsLayoutAtoms::scriptEnabledBeforePrintPreview)));