If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

A dropdown list of a select element is closed when mouse cursor is moved to outside of the dropdown list

NEW
Unassigned

Status

()

Core
Layout: Form Controls
9 years ago
3 months ago

People

(Reporter: Hideo Oshima, Unassigned)

Tracking

({access})

Trunk
access
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(3 attachments)

(Reporter)

Description

9 years ago
Steps to reproduce:
1. Open test case. 
2. Mouse down on the select item and drag downward to select 'B'.

Actual result:
Can't select 'B'.

Expeected result:
Can select 'B'.

Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2a1pre) Gecko/20081214 Minefield/3.2a1pre
This works fine for me on Windows XP, latest trunk so this might affect Linux only.
(Reporter)

Comment 2

9 years ago
(In reply to comment #1)
> This works fine for me on Windows XP, latest trunk so this might affect Linux
> only.

Yes, I agree.
It's works for me too on Windows XP.
looks like layout issue.

on vista, when I move a mouse cursor to outside of a dropdown list, the dropdown list is closed.
On Oshima-san's environment, there is gap between combobox and dropdown list. It seems that the parent element's :hover state makes to reflow the combobox frame. I guess it's a cause of this bug.
(Reporter)

Comment 5

9 years ago
Created attachment 354153 [details]
Screen shot of test case.

Screen shot for http://bugzilla.mozilla.gr.jp/attachment.cgi?id=2012.
There is small gap combobox and drop down list as shown in Nakano-san's comment.
Component: General → Layout: Form Controls
OS: Linux → All
Product: Firefox → Core
QA Contact: general → layout.form-controls
Hardware: x86 → All
Version: unspecified → Trunk
Created attachment 354195 [details] [diff] [review]
proposal patch #1

I suggest this patch. This patch will reopen the dropdown list after reflow. I think that this is not correct fix for this bug. It seems that we should not recreate the frames, especially the popup frame. However, it needs pretty big changes. Therefore, I think that this way is better for now. But there are some issues I need more works before review...
Summary: Can't select 'form select' by mouse → A dropdown list of a select element is closed when mouse cursor is moved to outside of the dropdown list
this bug should be an accessibility issue, especially for linux users.
Keywords: access
We have to recreate frames for position changes, for sure.  The new frame or one of its descendants might well need to be in a different frame list.

I could have sworn we had a bug on the frame reconstruct closing the dropdown, though.
Why cannot we reuse the old dropdown frame with new combobox frame? If we can do so, we don't need to see the flicker of the dropdown window by closing and opening it. So, it will look like just moving/resizing/repainting the dropdown window.
> Why cannot we reuse the old dropdown frame with new combobox frame?

We could try with a lot of added complexity in the frame constructor, but that really doesn't seem worth it...

Comment 11

8 years ago
Cannot reproduce with Firefox-trunk/WinXP.

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.3a1pre) Gecko/20100204 Minefield/3.7a1pre
Note for my self:
* Need to restore the last highlighted item at reopening the dropdown list.
* We shouldn't change the selected item when the dropdown list is closed by destroying the parent because the DOM change event shouldn't be fired, the user has never changed the selected item himself/herself.

Comment 13

5 years ago
Created attachment 645515 [details]
Testcase from http://bugzilla.mozilla.gr.jp/attachment.cgi?id=2012

Updated

5 years ago
Attachment #645515 - Attachment mime type: text/plain → application/xhtml+xml

Comment 14

5 years ago
This happens currently with the two dropdown lists under “Help others attribute you!” at https://creativecommons.org/choose/

Updated

2 years ago
Duplicate of this bug: 1249757
You need to log in before you can comment on or make changes to this bug.