From 50c73cf58757c90e336accc889eabb49d4594b5d Mon Sep 17 00:00:00 2001 From: Jim Mathies Date: Thu, 21 Oct 2010 16:59:26 -0500 Subject: [PATCH] Bug 605023 - Prevent nsChromeRegistry::ReloadChrome() from hiding top level widgets on windows. r=bz, a=betaN --- layout/base/nsDocumentViewer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layout/base/nsDocumentViewer.cpp b/layout/base/nsDocumentViewer.cpp index 9d3f9ac41b..dc5bb979ac 100644 --- a/layout/base/nsDocumentViewer.cpp +++ b/layout/base/nsDocumentViewer.cpp @@ -2011,7 +2011,7 @@ DocumentViewerImpl::Show(void) NS_IMETHODIMP DocumentViewerImpl::Hide(void) { - if (mWindow) { + if (!mAttachedToParent && mWindow) { mWindow->Show(PR_FALSE); } @@ -2054,7 +2054,7 @@ DocumentViewerImpl::Hide(void) nsCOMPtr base_win(do_QueryReferent(mContainer)); - if (base_win) { + if (base_win && !mAttachedToParent) { base_win->SetParentWidget(nsnull); } -- 2.11.4.GIT