hooking up popup window management. bug 166442 r=jag,jst,timeless

git-svn-id: svn://10.0.0.236/trunk@129212 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
danm%netscape.com
2002-09-11 02:29:27 +00:00
parent 5fa6119d3b
commit c93a9aa3d6
3 changed files with 90 additions and 6 deletions

View File

@@ -38,6 +38,7 @@
#include "nsIEmbeddingSiteWindow2.h"
#include "nsIPrompt.h"
#include "nsIAuthPrompt.h"
#include "nsIWindowCreator2.h"
#include "nsIWindowMediator.h"
#include "nsIXULBrowserWindow.h"
#include "nsPIDOMWindow.h"
@@ -653,6 +654,11 @@ NS_IMETHODIMP nsContentTreeOwner::ApplyChromeFlags()
the 'chromehidden' attribute of the <window> tag. */
nsAutoString newvalue;
PRUint32 contextFlags;
mXULWindow->GetContextFlags(&contextFlags);
if (! (contextFlags & nsIWindowCreator2::PARENT_IS_LOADING_OR_RUNNING_TIMEOUT))
newvalue.Append(NS_LITERAL_STRING("popupcontrol "));
if (! (mChromeFlags & nsIWebBrowserChrome::CHROME_MENUBAR))
newvalue.Append(NS_LITERAL_STRING("menubar "));