select element should lose focus if mouse is not over element when option list is removed

UNCONFIRMED
Unassigned

Status

()

UNCONFIRMED
11 years ago
11 years ago

People

(Reporter: alexander.bocast, Unassigned)

Tracking

Trunk
x86
Windows XP
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

3.23 KB, application/x-asp
Details
(Reporter)

Description

11 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a5pre) Gecko/20070524 Minefield/3.0a5pre
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a5pre) Gecko/20070524 Minefield/3.0a5pre

When the mouse is moved away from a select element whose option list is still displayed, the option list will be removed on mouseDown of the first subsequent click. However, blur is not fired until the the mouseDown of a second click. 
(a) Blur should occur when the option list is removed with the first click.
(b) No onClick is fired for either the mouseDown-in-select/mouseUp-in-container or the first subsequent click; shouldn't onClick fire for all clicks? 

Reproducible: Always

Steps to Reproduce:
1. load attached test page
2. mouseDown on select box, swipe across option list into purple, mouseUp in purple
3. click in purple
4. click again in purple
Actual Results:  
Transcript should look like:

bubbleClick: container target[container] 
bubbleMouseUp: container target[container] 
bubbleBlur: container target[select] 
bubbleBlur: select target[select] 
bubbleMouseDown: container target[container]   <-- second click in container
bubbleMouseUp: container target[container]     <-- first click in container
bubbleMouseUp: container target[select]        
bubbleMouseUp: select target[select]           <-- mouseUp in container
bubbleFocus: container target[select] 
bubbleFocus: select target[select] 
bubbleMouseDown: container target[select] 
bubbleMouseDown: select target[select]         <-- mouseDown on select

Expected Results:  
I think the transcript should look something like this:

bubbleClick: container target[container] 
bubbleMouseUp: container target[container] 
bubbleBlur: container target[select] 
bubbleBlur: select target[select] 
bubbleMouseDown: container target[container]   <-- first click in container
bubbleClick: container target[container]
bubbleMouseUp: container target[container]     <-- mouseUp in container
bubbleFocus: container target[select] 
bubbleFocus: select target[select] 
bubbleMouseDown: container target[select] 
bubbleMouseDown: select target[select]         <-- mouseDown on select
(Reporter)

Comment 1

11 years ago
Created attachment 266021 [details]
testcase
Component: General → Event Handling
Product: Firefox → Core
QA Contact: general → events
Version: unspecified → Trunk
You need to log in before you can comment on or make changes to this bug.