diff --git a/layout/base/nsDocumentViewer.cpp b/layout/base/nsDocumentViewer.cpp index 8815f856a68a..3ef28eb3e7f7 100644 --- a/layout/base/nsDocumentViewer.cpp +++ b/layout/base/nsDocumentViewer.cpp @@ -1360,6 +1360,8 @@ DocumentViewerImpl::Open(nsISupports *aState, nsISHEntry *aSHEntry) nsresult rv = InitInternal(mParentWidget, aState, mBounds, PR_FALSE); NS_ENSURE_SUCCESS(rv, rv); + mHidden = PR_FALSE; + if (mPresShell) mPresShell->SetForwardingContainer(nsnull);