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: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/f0d6d8712b965f68658dd56fab062282d0ac6850/navigator.js/buggy/xpfe/browser/resources/content/navigator.js