add: var mPrefs = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPrefBranch); 
context: function ensureSearchPref() {      var rdf = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService(Components.interfaces.nsIRDFService);   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/1dc927b41a88ca9b4472b8b067348d5586f12d32/navigator.js/clean/suite/browser/navigator.js