context:     init: function(toplevelWindow, contentWindow)    {        this.toplevelWindow = toplevelWindow;        this.contentWindow = contentWindow;        // hook up the whole parent chain thing        var windowDocShell = this.convertWindowToDocShell(toplevelWindow);        if (windowDocShell)            windowDocshell.parentURIContentListener = 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/55a5e5ddbf4a7e9103b995d808c4466085d2123f/nsBrowserContentListener.js/buggy/xpfe/browser/resources/content/nsBrowserContentListener.js