From de5a04fe3ff7aab441b9c220d2340e28c2d5b300 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 9af2570fa2bb..5c6a9039f421 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; }