rem: init: function(toplevelWindow, contentWindow) { const nsIWebBrowserChrome = Components.interfaces.nsIWebBrowserChrome; this.toplevelWindow = toplevelWindow; this.contentWindow = contentWindow; 
add: init : function() { this.throbberElement        = document.getElementById("navigator-throbber"); this.statusMeter            = document.getElementById("statusbar-icon"); this.stopCommand            = document.getElementById("Browser:Stop"); this.reloadCommand          = document.getElementById("Browser:Reload"); this.reloadSkipCacheCommand = document.getElementById("Browser:ReloadSkipCache"); this.statusTextField        = document.getElementById("statusbar-display"); this.securityButton         = document.getElementById("security-button"); this.urlBar                 = document.getElementById("urlbar"); this.isImage                = document.getElementById("isImage"); 
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: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/4c3bdeb751eedaf86b948c4e0684cf09d34af54b/browser.js/buggy/browser/base/content/browser.js