mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
d24fa9a084
commit
14331ea95b
@ -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();
|
||||
]]>
|
||||
|
Loading…
Reference in New Issue
Block a user