Mouseover no longer fire in top document if mousedown was done in iframe

RESOLVED WORKSFORME

Status

()

Core
Event Handling
RESOLVED WORKSFORME
7 years ago
9 months ago

People

(Reporter: Michael Beckius, Assigned: smaug)

Tracking

({regression})

Trunk
x86
Windows 7
regression
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

7 years ago
User-Agent:       Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0) Gecko/20100101 Firefox/4.0
Build Identifier: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0) Gecko/20100101 Firefox/4.0

If you mousedown in an iframe and while holding the button down, move the mouse pointer over to an element in the parent document, mouseover on that element will not fire.
This is a problem since FF4.0 and it breaks existing drag & drop scripts where you could drag and drop between iframes/frames.

Reproducible: Always

Steps to Reproduce:
1 Press and hold the mouse button in an iframe.
2 Move the mouse pointer over to an element, that has an event handler for 'onmouseover' attached, in the iframes parent.
3 The 'onmouseover' event should fire on that element, but doesn't.

See the simple test case at http://bananascript.com/mouseover/
Actual Results:  
Event doesn't fire.

Expected Results:  
Event should fire.

Only affecting Firefox 4. It breaks existing drag & drop scripts where you can drag & drop between iframes/frames.
Worked fine in 3.x.

Comment 1

7 years ago
Regression window;
Works:
http://hg.mozilla.org/mozilla-central/rev/882525a98119
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b8pre) Gecko/20101027 Firefox/4.0b8pre ID:20101028052538
Fails:
http://hg.mozilla.org/mozilla-central/rev/66b7220a7c35
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b8pre) Gecko/20101026 Firefox/4.0b8pre ID:20101028081508
Pushlog:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=882525a98119&tochange=66b7220a7c35
Triggered by:
66b7220a7c35	Olli Pettay — Bug 606192 - After drag & drop any link/text/image to contents area, mouse click chrome elements does not work, r=enndeakin, a=beltzner
Blocks: 606192
Status: UNCONFIRMED → NEW
Component: General → Event Handling
Ever confirmed: true
Keywords: regression
Product: Firefox → Core
QA Contact: general → events
Version: unspecified → Trunk

Comment 2

7 years ago
Firefox 4.0.1 has the same bug. Is there any workaround for drag & drop between an iframe and the top window?

Comment 3

7 years ago
A similar bug, maybe duplicate: bug 654229 "right-click menu items unselectable when button is not released".
Assignee: nobody → Olli.Pettay

Comment 4

2 years ago
Is this something that is still being investigated or should this be closed as wont fix?
Flags: needinfo?(bugs)

Comment 5

2 years ago
This bug has been tagged for regression and or closure.
I cannot produce the error on the latest Release 
Considering this I will mark this issue as Resolved-WORKSFORME. If anyone can still reproduce it, feel free to reopen the issue and provide updated steps/links.
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → WORKSFORME
Flags: needinfo?(bugs)
You need to log in before you can comment on or make changes to this bug.