rem: var engineRes = arcs.getNext().QueryInterface(Components.interfaces.nsIRDFResource); 
add: var engineRes = arcs.getNext().QueryInterface(Components.interfaces.nsIRDFResource); 
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);	kNC_Root = aRDF.GetResource("NC:SearchEngineRoot");    kNC_child = aRDF.GetResource("http://home.netscape.com/NC-rdf#child");    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: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/e05db65ae16cf88513dcd25465c8f4f9609c25fd/navigator.js/buggy/xpfe/browser/resources/content/navigator.js