rem:  var windowDocShell = this.convertWindowToDocShell(toplevelWindow); if (windowDocShell) { windowDocshell .QueryInterface(Components.interfaces.nsIInterfaceRequestor) .getInterface(Components.interfaces.nsIURIContentListener) .parentContentListener = this; } var registerWindow = false; try { var treeItem = contentWindow.docShell.QueryInterface(Components.interfaces.nsIDocShellTreeItem); var treeOwner = treeItem.treeOwner; var interfaceRequestor = treeOwner.QueryInterface(Components.interfaces.nsIInterfaceRequestor); var webBrowserChrome = interfaceRequestor.getInterface(nsIWebBrowserChrome); if (webBrowserChrome) { var chromeFlags = webBrowserChrome.chromeFlags; var res = chromeFlags & nsIWebBrowserChrome.CHROME_ALL; var res2 = chromeFlags & nsIWebBrowserChrome.CHROME_DEFAULT; if ( res == nsIWebBrowserChrome.CHROME_ALL || res2 == nsIWebBrowserChrome.CHROME_DEFAULT) { registerWindow = true; } } } catch (ex) {}   if (registerWindow) { var uriLoader = Components.classes["@mozilla.org/uriloader;1"].getService(Components.interfaces.nsIURILoader); uriLoader.registerContentListener(this); } }, 
add:  var securityUI = getBrowser().securityUI; this.onSecurityChange(null, null, securityUI.state); }, 
context:     init: function(toplevelWindow, contentWindow)    {        const nsIWebBrowserChrome = Components.interfaces.nsIWebBrowserChrome;        this.toplevelWindow = toplevelWindow;        this.contentWindow = contentWindow;        // hook up the whole parent chain thing        var windowDocShell = this.convertWindowToDocShell(toplevelWindow);        if (windowDocShell) {            windowDocshell              .QueryInterface(Components.interfaces.nsIInterfaceRequestor)              .getInterface(Components.interfaces.nsIURIContentListener)              .parentContentListener = this;        }        var registerWindow = false;        try {          var treeItem = contentWindow.docShell.QueryInterface(Components.interfaces.nsIDocShellTreeItem);          var treeOwner = treeItem.treeOwner;          var interfaceRequestor = treeOwner.QueryInterface(Components.interfaces.nsIInterfaceRequestor);          var webBrowserChrome = interfaceRequestor.getInterface(nsIWebBrowserChrome);          if (webBrowserChrome)          {            var chromeFlags = webBrowserChrome.chromeFlags;            var res = chromeFlags & nsIWebBrowserChrome.CHROME_ALL;            var res2 = chromeFlags & nsIWebBrowserChrome.CHROME_DEFAULT;            if ( res == nsIWebBrowserChrome.CHROME_ALL || res2 == nsIWebBrowserChrome.CHROME_DEFAULT)            {              registerWindow = true;            }         }       } catch (ex) {}        // register ourselves       if (registerWindow)       {        var uriLoader = Components.classes["@mozilla.org/uriloader;1"].getService(Components.interfaces.nsIURILoader);        uriLoader.registerContentListener(this);       }    },
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/4c3bdeb751eedaf86b948c4e0684cf09d34af54b/browser.js/clean/browser/base/content/browser.js