rem: mPrefs = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPrefBranch); 
add: var mPrefs = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPrefBranch); 
context: function getSearchUrl(attr) {    var rdf=Components.classes["@mozilla.org/rdf/rdf-service;1"].getService(Components.interfaces.nsIRDFService);     var ds = rdf.GetDataSource("rdf:internetsearch");     kNC_Root = rdf.GetResource("NC:SearchEngineRoot");    mPrefs = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPrefBranch);    var defaultEngine = mPrefs.getCharPref("browser.search.defaultengine");    engineRes= rdf.GetResource(defaultEngine);    prop = "http://home.netscape.com/NC-rdf#" + attr;    kNC_attr = rdf.GetResource(prop);    searchURL = readRDFString(ds, engineRes, kNC_attr);    if (searchURL)      return searchURL}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/92561d4f2d3b162834eb56f86521035308b51190/navigator.js/buggy/xpfe/browser/resources/content/navigator.js