Bug 406179 - "delete (or shift/delete) of a row in the rich url bar results does not select the next item after delete" (remove the offending code) [p=zeniko@gmail.com (Simon Bünzli) r=sspitzer a=blocking-firefox3+]

This commit is contained in:
reed@reedloden.com 2008-01-19 18:59:21 -08:00
parent d24fa9a084
commit 14331ea95b

View File

@ -933,19 +933,6 @@
for (var i = this._matchCount; i < existingItemsCount; i++)
this.richlistbox.childNodes[i].collapsed = true;
var clearSelection = true;
var currentSelectedIndex = this.selectedIndex;
if (currentSelectedIndex != -1 && currentSelectedIndex < this._matchCount) {
var controller = this.mInput.controller;
var item = this.richlistbox.childNodes[currentSelectedIndex];
if (item.getAttribute("url") == controller.getValueAt(currentSelectedIndex) &&
item.getAttribute("title") == controller.getCommentAt(currentSelectedIndex)) {
clearSelection = false;
}
}
if (currentSelectedIndex != -1 && clearSelection)
this.selectedIndex = -1;
this._currentIndex = 0;
this._appendCurrentResult();
]]>