rem: defaultEngine = mPrefs.getCharPref("browser.search.defaultengine"); } 
add: defaultEngine = prefbranch.getCharPref("browser.search.defaultengine"); } 
context: function ensureSearchPref() {      var rdf = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService(Components.interfaces.nsIRDFService);   mPrefs = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);   var ds = rdf.GetDataSource("rdf:internetsearch");   kNC_Name = rdf.GetResource("http://home.netscape.com/NC-rdf#Name");   try {        defaultEngine = mPrefs.getCharPref("browser.search.defaultengine");        } catch(ex) {            ensureDefaultEnginePrefs(rdf, ds);            defaultEngine = mPrefs.getCharPref("browser.search.defaultengine");            }   }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/dae3f9b6f816121e6298e1050cc400c463d83f63/search-panel.js/buggy/suite/common/search/search-panel.js