Closed
Bug 267866
Opened 20 years ago
Closed 18 years ago
Wrong algorithm of selection in listbox seltype="multiple"
Categories
(Core :: XUL, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: surkov, Unassigned)
References
()
Details
Attachments
(3 files)
624 bytes,
application/vnd.mozilla.xul+xml
|
Details | |
738 bytes,
application/vnd.mozilla.xul+xml
|
Details | |
6.29 KB,
patch
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040616
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040616
I get invalid selection when I select items in the following way. Let m<i<n is
indexes of listitems
Reproducible: Always
Steps to Reproduce:
1. Select m item
2. Select n item keeping shift key
3. Select i item
4. Select n item keeping shift key
Actual Results:
Indexes of selected items evaluate from m to n.
Expected Results:
If we replace m by n in this algorithm (note: m<i<n) then selection is wrong
(also from m to n).
Reporter | ||
Comment 1•20 years ago
|
||
Reporter | ||
Comment 2•20 years ago
|
||
Expected results:
Indexes of selected items should evaluate from i to n.
Comment 3•20 years ago
|
||
Anyone fixing this might consider looking at tree.xml and nsTreeSelection.cpp
Comment 4•20 years ago
|
||
seems to be a "live" value in listbox.xml to me, I will check and test
Comment 5•20 years ago
|
||
I guess we have three multiple selection implementations, for <html:select>
<xul:tree> and <xul:listbox>, and they need to all work the same way...
Comment 6•20 years ago
|
||
Updated URL for a data: html|select textcase (html trans -- quirks; in this case)
If someone can create a testcase for xul|tree I will look into it as well, I
dont know our xul tree code well enough.
Comment 7•20 years ago
|
||
So on the face of it it looks like the code paths used by <select> and <tree>
are correct, at least in this case.
Comment 8•20 years ago
|
||
hmm, my minor (potential) fix did not work in my FF build, from current aviary
tree...I'll investigate further I suspect later on.
Comment 9•19 years ago
|
||
This patch should correctly reset _selectionStart whenever addItemToSelection
and removeItemFromSelection are called outside of range selecting code (with
the minor exception of toggleItemSelection which might be considered syntactic
sugar for the other two).
Attachment #198305 -
Flags: review?(bryner)
Updated•19 years ago
|
Flags: blocking1.8.1?
Comment 10•18 years ago
|
||
Not going to block 1.8.1 for this bug.
Flags: blocking1.8.1? → blocking1.8.1-
Updated•18 years ago
|
Attachment #198305 -
Flags: review?(bryner) → review?(mconnor)
Comment 11•18 years ago
|
||
This fix has been included together with the changes in bug 298371. -> FIXED
Updated•18 years ago
|
Attachment #198305 -
Flags: review?(mconnor)
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: xptoolkit.widgets
You need to log in
before you can comment on or make changes to this bug.
Description
•