rem:  var useButton = document.getElementById("browserUseCurrent");  var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsIWindowMediator); var win = wm.getMostRecentWindow("navigator:browser"); if (win) { var tabbrowser = win.document.getElementById("content"); if (tabbrowser.browsers.length > 1) useButton.label = useButton.getAttribute("label2"); } else {  useButton.disabled = true; } 
add:  this._updateUseCurrentButton(); if (document.documentElement.instantApply) window.addEventListener("focus", this._updateUseCurrentButton, false); 
context:   init: function ()  {    this._pane = document.getElementById("paneGeneral");        var useButton = document.getElementById("browserUseCurrent");        var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"]                       .getService(Components.interfaces.nsIWindowMediator);    var win = wm.getMostRecentWindow("navigator:browser");    if (win) {      var tabbrowser = win.document.getElementById("content");        if (tabbrowser.browsers.length > 1)        useButton.label = useButton.getAttribute("label2");    }    else {      // prefwindow wasn't opened from a browser window, so no current page      useButton.disabled = true;    }  },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/9c2defff3303034a7df868247ccf5832aabfc176/general.js/buggy/browser/components/preferences/general.js