From 4751e18f613a9f901b96622b1ef8505e4df8d3f5 Mon Sep 17 00:00:00 2001 From: Justin Dolske Date: Tue, 19 Apr 2011 14:18:17 -0700 Subject: [PATCH] Bug 637160 - window-modal prompts used instead of tab-modal prompts when reentering a page using back/forward. r=bz --- layout/base/nsDocumentViewer.cpp | 2 ++ 1 file changed, 2 insertions(+) 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);