From a03b85a21ddc8bae101b788812fccab0ee81eceb Mon Sep 17 00:00:00 2001 From: "mscott%netscape.com" Date: Tue, 17 Jul 2001 21:50:56 +0000 Subject: [PATCH] Bug #85264 --> properly check for a all_chrome case. r/sr=sspitzer --- xpfe/browser/resources/content/nsBrowserContentListener.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xpfe/browser/resources/content/nsBrowserContentListener.js b/xpfe/browser/resources/content/nsBrowserContentListener.js index 9af2570fa2b..5c6a9039f42 100644 --- a/xpfe/browser/resources/content/nsBrowserContentListener.js +++ b/xpfe/browser/resources/content/nsBrowserContentListener.js @@ -56,7 +56,9 @@ nsBrowserContentListener.prototype = if (webBrowserChrome) { var chromeFlags = webBrowserChrome.chromeFlags; - if (chromeFlags == nsIWebBrowserChrome.CHROME_ALL || chromeFlags == nsIWebBrowserChrome.CHROME_DEFAULT) + var res = chromeFlags & nsIWebBrowserChrome.CHROME_ALL; + var res2 = chromeFlags & nsIWebBrowserChrome.CHROME_DEFAULT; + if ( res == nsIWebBrowserChrome.CHROME_ALL || res2 == nsIWebBrowserChrome.CHROME_DEFAULT) { registerWindow = true; }