Multiple selection lists cannot be scrolled

VERIFIED FIXED

Status

()

Firefox for Android
General
P2
normal
VERIFIED FIXED
6 years ago
9 months ago

People

(Reporter: xti, Assigned: wesj)

Tracking

unspecified
ARM
Android
Points:
---

Firefox Tracking Flags

(firefox11 fixed, fennec11+)

Details

Attachments

(1 attachment, 1 obsolete attachment)

(Reporter)

Description

6 years ago
Mozilla/5.0 (Android;Linux armv7l;rv:11.0a1)Gecko/20111124
Firefox/11.0a1 Fennec/11.0a1
Devices: Samsung Galaxy Nexus S
OS: Android 2.3.4

Steps to reproduce:
1. Open Fennec App
2. Browse to bugzilla.mozilla.org
3. Tap on Search button > Advance search
4. Scroll down the "Product" multi-selection list

Expected result:
The "Product" list is scrollable.

Actual result:
The "Product" list cannot be scrolled. There will be the same results for any other multi-selection list.
Assignee: nobody → wjohnston
Priority: -- → P2
(Assignee)

Comment 1

6 years ago
Created attachment 580388 [details] [diff] [review]
Patch

Add these to the list of scrollable things.
Attachment #580388 - Flags: review?(mark.finkle)
Comment on attachment 580388 [details] [diff] [review]
Patch

I know this bug is about multiple select listboxes (<select size='1' multiple='1'/>), but should this really be about _any_ listbox (<select size='1'/>) ?
(Assignee)

Comment 3

6 years ago
Created attachment 580409 [details] [diff] [review]
Patch

Oh good catch. This scrolls multiple selects and selects with size > 1. Test page:

http://dl.dropbox.com/u/72157/Testing/Select.html
Attachment #580388 - Attachment is obsolete: true
Attachment #580388 - Flags: review?(mark.finkle)
Attachment #580409 - Flags: review?(mark.finkle)
Attachment #580409 - Flags: review?(mark.finkle) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/a64d8d8b512e
https://hg.mozilla.org/mozilla-central/rev/a64d8d8b512e
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
Comment on attachment 580409 [details] [diff] [review]
Patch

>--- a/mobile/android/chrome/content/browser.js
>+++ b/mobile/android/chrome/content/browser.js
>-             elem.localName == 'textarea' ||
>-             elem.localName == 'html' ||
>-             elem.localName == 'body')) {
>+             elem.mozMatchesSelector("html, body, textarea")) ||

Why?
(In reply to Ms2ger from comment #6)
> Comment on attachment 580409 [details] [diff] [review]
> Patch
> 
> >--- a/mobile/android/chrome/content/browser.js
> >+++ b/mobile/android/chrome/content/browser.js
> >-             elem.localName == 'textarea' ||
> >-             elem.localName == 'html' ||
> >-             elem.localName == 'body')) {
> >+             elem.mozMatchesSelector("html, body, textarea")) ||
> 
> Why?

I assumed it was simply cleanup of an already "out of control" it statement. Are you concerned about performance?
(In reply to Mark Finkle (:mfinkle) from comment #7)
> (In reply to Ms2ger from comment #6)
> > Comment on attachment 580409 [details] [diff] [review]
> > Patch
> > 
> > >--- a/mobile/android/chrome/content/browser.js
> > >+++ b/mobile/android/chrome/content/browser.js
> > >-             elem.localName == 'textarea' ||
> > >-             elem.localName == 'html' ||
> > >-             elem.localName == 'body')) {
> > >+             elem.mozMatchesSelector("html, body, textarea")) ||
> > 
> > Why?
> 
> I assumed it was simply cleanup of an already "out of control" it statement.
> Are you concerned about performance?

Not too much, just wondering.

Comment 9

6 years ago
Retested with:
Mozilla/5.0 (Android; Linux armv7l; rv:11.0a1) Gecko/20111212 Firefox/11.0a1 Fennec/11.0a1
HTC Desire Z (Android 2.3)

Bug no longer reproducible. All lists from http://dl.dropbox.com/u/72157/Testing/Select.html can be scrolled properly.
Verifying bug.
Status: RESOLVED → VERIFIED
tracking-fennec: --- → 11+
status-firefox11: --- → fixed
You need to log in before you can comment on or make changes to this bug.