rem: function ensureSearchPref() {  
add: function ensureSearchPref() { var rdf = Components.classes["@mozilla.org/rdf/rdf-service;1"] .getService(Components.interfaces.nsIRDFService); var prefbranch = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); var ds = rdf.GetDataSource("rdf:internetsearch"); var kNC_Name = rdf.GetResource("http: var defaultEngine; 
context: function ensureSearchPref() {      var rdf = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService(Components.interfaces.nsIRDFService);   var prefbranch = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);   var ds = rdf.GetDataSource("rdf:internetsearch");   var kNC_Name = rdf.GetResource("http://home.netscape.com/NC-rdf#Name");   try {        var defaultEngine = prefbranch.getCharPref("browser.search.defaultengine");        } catch(ex) {            ensureDefaultEnginePrefs(rdf, ds);            defaultEngine = prefbranch.getCharPref("browser.search.defaultengine");        }   }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/2f3ac5bffe076742693af2cc630f8ca15213a671/search-panel.js/buggy/suite/common/search/search-panel.js