Closed
Bug 960354
Opened 11 years ago
Closed 11 years ago
Multi-select drop down menus don't update properly
Categories
(Firefox for Metro Graveyard :: Browser, defect, P2)
Tracking
(firefox28 verified, firefox29 verified)
VERIFIED
FIXED
Firefox 29
People
(Reporter: jimm, Assigned: jimm)
References
Details
(Whiteboard: [beta28] [defect] p=2)
Attachments
(2 files, 1 obsolete file)
(deleted),
text/html
|
Details | |
(deleted),
patch
|
mbrubeck
:
review+
|
Details | Diff | Splinter Review |
str:
1) open up a form interface with a multiselect drop down
2) select an item in the list
3) select another item
4) select the previous item to unselect
result: the form element selection will update, but the popup menu item will remain selected.
Updated•11 years ago
|
Blocks: metrov1backlog
Whiteboard: [triage] → [triage] [defect] p=0
Assignee | ||
Comment 1•11 years ago
|
||
Assignee | ||
Comment 2•11 years ago
|
||
This was pretty messed up, I'm not sure what we were doing before hand. Cleaned things up so these selects are working.
Also working a a multiselect test which I'll post in a bit.
Assignee: nobody → jmathies
Attachment #8361261 -
Flags: review?(mbrubeck)
Comment 3•11 years ago
|
||
Hey Jim, can you provide a point estimate.
Status: NEW → ASSIGNED
Flags: needinfo?(jmathies)
Priority: -- → P2
QA Contact: jbecerra
Whiteboard: [triage] [defect] p=0 → [beta28] [defect] p=0
Comment 4•11 years ago
|
||
Comment on attachment 8361261 [details] [diff] [review]
patch v.1
Review of attachment 8361261 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good! Minor style nits below:
::: browser/metro/base/content/helperui/SelectHelperUI.js
@@ +83,5 @@
> +
> + // Setup pre-selected items. Note, this has to happen after show.
> + this._listbox.clearSelection();
> + let item;
> + while (item = selectedItems.pop()) {
Could you use "for (let item of selectedItems)" instead? (Just to be more idiomatic, and possibly avoid extra malloc/free from mutating the array.)
@@ +144,5 @@
> + }
> + // Fix up selected items - richlistbox will clear selection on click events
> + // so we need to set selection on the items the user has previously chosen.
> + this._listbox.clearSelection();
> + for (let index = 0; index < this._listbox.childNodes.length; index++) {
for (let node of this._listbox.childNodes)
Attachment #8361261 -
Flags: review?(mbrubeck) → review+
Assignee | ||
Comment 5•11 years ago
|
||
updated per comments plus a test.
Attachment #8361261 -
Attachment is obsolete: true
Attachment #8361293 -
Flags: review?(mbrubeck)
Flags: needinfo?(jmathies)
Assignee | ||
Comment 6•11 years ago
|
||
Comment on attachment 8361293 [details] [diff] [review]
patch v.2
Review of attachment 8361293 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/metro/base/content/helperui/SelectHelperUI.js
@@ +83,5 @@
> +
> + // Setup pre-selected items. Note, this has to happen after show.
> + this._listbox.clearSelection();
> + let item;
> + for (let item of selectedItems) {
oops, nixed |let item;| locally.
Assignee | ||
Updated•11 years ago
|
Flags: needinfo?(jmathies)
Whiteboard: [beta28] [defect] p=0 → [beta28] [defect] p=2
Updated•11 years ago
|
Attachment #8361293 -
Flags: review?(mbrubeck) → review+
Assignee | ||
Comment 8•11 years ago
|
||
Comment 9•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 29
Comment 10•11 years ago
|
||
For iteration #22, verified as fixed with latest Nightly on Win 8.1 64-bit.
Status: RESOLVED → VERIFIED
Comment 11•11 years ago
|
||
status-firefox28:
--- → fixed
status-firefox29:
--- → fixed
Comment 12•11 years ago
|
||
Kamil, please verify this is fixed in the latest Aurora build.
Flags: needinfo?(kamiljoz)
Comment 13•11 years ago
|
||
Went through the following verification without any issues. Used the following build:
http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/2014-02-09-00-40-02-mozilla-aurora/
Before verifying the issue, reproduced the problem with the following build:
- http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/2014-01-15-00-40-03-mozilla-aurora/
- Ensured that the multi-select drown down menu is being updated correctly
- Ensured that you can select/deselect multiple items without any issues
- Ensured that the multi-select drop down appears every single time you tap on the list box
- Ensured that you can scroll through the multi-select drop down without issues (scrolling up/down)
- Ensured that the multi-select drop down menu works with both touch and touchpad
- Ensured that all of the above test cases worked with different variations of snapped view
Found that bug that can be fixed to greatly improve the user experience. Created Bug # 970178
Flags: needinfo?(kamiljoz)
Comment 14•11 years ago
|
||
Also found the following issue when I was going through verification:
- Bug #970181
You need to log in
before you can comment on or make changes to this bug.
Description
•