var svc = Components.classes["@mozilla.org/preferences-service;1"]
.getService(Components.interfaces.nsIPrefService);
svc.getBranch(null);
// ensure that if a result menuitem is moused-over, any
// search selection is cleared
(function(aEvent) {
if (aEvent.target.nodeName == "menuitem")
this.mSearchBox.selectedIndex = null;
})
// ensure that if the popup closes, any search selection is cleared
(function(aEvent) {
this.mSearchBox.selectedIndex = null;
})
return this.mSelectedIndex;
this.parentNode.textbox.onResultClick();
this.parentNode.selectedIndex = Number(this.getAttribute("engineIndex"));
this.parentNode.selectedIndex = null;