rem: mPrefs = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPrefBranch); 
add: mPrefs = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch); 
context: function ensureDefaultEnginePrefs(aRDF,aDS)    {    mPrefs = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPrefBranch);    var defaultName = mPrefs.getComplexValue("browser.search.defaultenginename" , Components.interfaces.nsIPrefLocalizedString);    var kNC_Root = aRDF.GetResource("NC:SearchEngineRoot");    var kNC_child = aRDF.GetResource("http://home.netscape.com/NC-rdf#child");    var kNC_Name = aRDF.GetResource("http://home.netscape.com/NC-rdf#Name");              var arcs = aDS.GetTargets(kNC_Root, kNC_child, true);    while (arcs.hasMoreElements()) {        var engineRes = arcs.getNext().QueryInterface(Components.interfaces.nsIRDFResource);        var name = readRDFString(aDS, engineRes, kNC_Name);        if (name == defaultName)		   mPrefs.setCharPref("browser.search.defaultengine", engineRes.Value);    }  }
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/faf03ce445712b372523f881cc3144cfadc7a611/search-panel.js/clean/xpfe/components/search/resources/search-panel.js