rem:  var searchBar = document.getElementsByTagName("searchbar"); for (var i=0; i<searchBar.length;i++) { if (gFormFillEnabled) searchBar[i].removeAttribute("disableautocomplete"); else searchBar[i].setAttribute("disableautocomplete", "true"); } 
context:   toggleFormFill: function ()  {    try {      gFormFillEnabled = gPrefService.getBoolPref(this.domain);    }    catch (e) {    }    var formController = Components.classes["@mozilla.org/satchel/form-fill-controller;1"].getService(Components.interfaces.nsIAutoCompleteInput);    formController.disableAutoComplete = !gFormFillEnabled;    var searchBar = document.getElementsByTagName("searchbar");    for (var i=0; i<searchBar.length;i++) {      if (gFormFillEnabled)        searchBar[i].removeAttribute("disableautocomplete");      else        searchBar[i].setAttribute("disableautocomplete", "true");    }  }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/91b6df50749f7d1151b1af91b319087b48a9a0a1/browser.js/buggy/browser/base/content/browser.js