rem: setLocalizedPref(BROWSER_SEARCH_PREF + "selectedEngine", this._currentEngine.name); 
add:  var currentEnginePref = BROWSER_SEARCH_PREF + "selectedEngine";  var prefB = Cc["@mozilla.org/preferences-service;1"]. getService(Ci.nsIPrefService).QueryInterface(Ci.nsIPrefBranch);  if (this._currentEngine == this.defaultEngine) { if (prefB.prefHasUserValue(currentEnginePref)) prefB.clearUserPref(currentEnginePref); } else { prefB.setCharPref(currentEnginePref, this._currentEngine.name); }  
context:   set currentEngine(val) {    ENSURE_ARG(val instanceof Ci.nsISearchEngine,               "Invalid argument passed to currentEngine setter");    var newCurrentEngine = this.getEngineByName(val.name);    ENSURE(newCurrentEngine, "Can't find engine in store!",           Cr.NS_ERROR_UNEXPECTED);    this._currentEngine = newCurrentEngine;    setLocalizedPref(BROWSER_SEARCH_PREF + "selectedEngine",                     this._currentEngine.name);    notifyAction(this._currentEngine, SEARCH_ENGINE_CURRENT);  },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/72b8361479669f09b9416ef2160137d54606ebd1/nsSearchService.js/buggy/browser/components/search/nsSearchService.js