rem: var mPrefs = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPrefBranch); 
add: var mPrefs = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch); 
context: function ensureDefaultEnginePrefs(aRDF,aDS) {  var 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/6d2b00dcb9143af8bf63d46a139de8fb3416e3cf/navigator.js/clean/suite/browser/navigator.js