rem: engineList.selectedIndex = 6; 
add: {  try { var prefInt =   null; var strDefaultSearchEngineName;  prefInt     =   Components.classes["@mozilla.org/preferences;1"]; if (prefInt) { prefInt = prefInt.getService(Components.interfaces.nsIPref); strDefaultSearchEngineName = prefInt.getLocalizedUnicharPref("browser.search.defaultenginename"); }  var engineListSelection = engineList.getElementsByAttribute( "label", strDefaultSearchEngineName ); var selectedItem = engineListSelection.length ? engineListSelection[0] : null;  if (selectedItem) {  engineList.selectedItem = selectedItem; } else {  engineList.selectedIndex = 1; } }  catch(e) {  engineList.selectedIndex = 1; }  } 
context: function checkEngine(){  var engineList = document.getElementById("engineList");  var engineValue = engineList.label;  if (!engineValue)    engineList.selectedIndex = 6;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/d072a59b2d6156c2f9b53d94e9b074ef8f9c6b1f/pref-search.js/clean/suite/common/pref/pref-search.js