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:
@@ -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 "));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user