rem: const nsIScriptError = Components.interfaces.nsIScriptError; var scriptError = aMsgObject.QueryInterface(nsIScriptError); var isWarning = scriptError.flags & nsIScriptError.warningFlag != 0; if (!isWarning) { var statusbarDisplay = document.getElementById("statusbar-display"); statusbarDisplay.setAttribute("error", "true"); statusbarDisplay.addEventListener("click", loadErrorConsole, true); statusbarDisplay.label = gNavigatorBundle.getString("jserror"); this.isShowingError = true; } }, 
add:  if (topic != "nsPref:changed") return; if (prefName.substr(0, this.domain.length) != this.domain) return;  var buttonName = prefName.substr(this.domain.length+1); var buttonId = buttonName + "-button"; var button = document.getElementById(buttonId);  var show = pref.GetBoolPref(prefName); if (show) button.setAttribute("hidden","false"); else button.setAttribute("hidden", "true");    if(allLeftButtonsAreHidden()) document.getElementById("home-bm-separator").setAttribute("hidden", "true"); else document.getElementById("home-bm-separator").removeAttribute("hidden"); } 
context:   observe: function (aMsgObject)  {    const nsIScriptError = Components.interfaces.nsIScriptError;    var scriptError = aMsgObject.QueryInterface(nsIScriptError);    var isWarning = scriptError.flags & nsIScriptError.warningFlag != 0;    if (!isWarning) {      var statusbarDisplay = document.getElementById("statusbar-display");      statusbarDisplay.setAttribute("error", "true");      statusbarDisplay.addEventListener("click", loadErrorConsole, true);      statusbarDisplay.label = gNavigatorBundle.getString("jserror");      this.isShowingError = true;    }  },
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/3e278e4913e5f47bf072bb36208b3fd591fb2996/navigator.js/buggy/xpfe/browser/resources/content/navigator.js