Closed
Bug 491959
Opened 17 years ago
Closed 17 years ago
Incorrect mouseout reporting within an iframe.
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 491997
People
(Reporter: submissions.ink.weaver, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.10) Gecko/2009042315 Firefox/3.0.10
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.10) Gecko/2009042315 Firefox/3.0.10
I am using Javascript to create a popup menu that includes among other things an iframe.
I start with a simple <div> with onmouseout and onmouseover event handlers. When the mouse is over the <div> I expand an initially hidden child <div> that contains an iframe. When the mouse leaves the <div> I close the popup menu within.
However, I discovered that on Firefox when I mouse out of an element within the iframe it reports a bad mouse position, evidently related to the iframe, generating a mouseout on the parent <div> holding the iframe.
I have tested this against Safari, and on Safari the code works perfectly, and elements within the iframe do not generate mouseouts that trigger the <div> to close again.
Reproducible: Always
Steps to Reproduce:
1. Mouse over the area where it says "Enter you email address to subscribe."
2. The <div> opens.
3. Mouse over the profile images, which are inside an iframe inside the <div>
4. Wait until the profile name pops up.
5. Move the mouse, either one pixel inside the profile image, or move it outside the profile image.
6. The mouseout event is triggered and the <div> closes.
Actual Results:
The mouseout event is triggered, closing the <div>.
I installed a test handler to check the mouse coordinates, and Firefox was also returning mouse coordinates outside of the <div> containing the iframe, when in fact the mouse was over the iframe, and over the <div> the whole time.
Expected Results:
My expected results are that moving the mouse, even one pixel within the element should not trigger mouseout on the parent element outside the iframe.
There appears to be a bug in the mouse position reporting. The behavior in Safari is correct, and the mouseout event is not triggered.
Comment 1•17 years ago
|
||
See if you can provide a testcase for us.
And change the URL please. I fail to see the usage here.
Comment 2•17 years ago
|
||
On Windows XP at least, I see nothing unexpected. As long as my mouse stays within the thumbnail, a tooltip is shown. Only when my mouse leaves the pop-up, the pop-up collapses.
Maybe this is Mac-only, or you have an add-on installed that interferes with your actions? (Or I totally misunderstand the issue.)
Thanks for testing this.
This is a duplicate because I thought Jesper had deleted this bug because I didn't provide a testcase.
I narrowed the bug down further and more accurately in:
https://bugzilla.mozilla.org/show_bug.cgi?id=491997
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•