Open Bug 1259357 Opened 8 years ago Updated 5 months ago

mouseup event target is wrong when the mousedown element is in overflow:hidden

Categories

(Core :: DOM: UI Events & Focus Handling, defect, P3)

44 Branch
defect

Tracking

()

UNCONFIRMED

People

(Reporter: jumperchen, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

(Whiteboard: btpp-followup-2016-04-26)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:44.0) Gecko/20100101 Firefox/44.0
Build ID: 20160210153822

Steps to reproduce:

1. Go to this example code - https://jsfiddle.net/crg1bhw8/
2. Mousedown into the green area and keep it
3. Move to the blue area to release your mouse (i.e. mouse up upon the blue area)



Actual results:

You will see the console log with "Please mouse down on me"


Expected results:

You should see the console log with "Please mouse up on me", this result works on all the latest browsers (IE8~11, Edge, Safari, and Chrome) except Firefox.
Component: Untriaged → DOM: Events
Product: Firefox → Core
Is this a dupe of bug 1257813?
Flags: needinfo?(jumperchen)
Whiteboard: btpp-followup-2016-04-26
No, this issue is related to the CSS "overflow:hidden", without it everything works well.
Flags: needinfo?(jumperchen)
Oh, then maybe a dupe of bug 1265237?
Flags: needinfo?(jumperchen)
Is this bug a regression? I'd be surprised if it was. My guess is that this is caused by the automatic mouse capturing that scrollable elements do, at https://dxr.mozilla.org/mozilla-central/rev/5511d54a3f172c1d68f98cc55dce4de1d0ba1b51/layout/generic/nsFrame.cpp#3260
Depends on: 1187591
Priority: -- → P3
Attached file Standalone testcase

I accidentally built a testcase for this while trying to debug a WebCompat issue. As the initial report is hosted on jsfiddle and might disappear some day, the simplified testcase is attached.

Flagging for WebCompat prioritization, as this breaks a JS table script, see bug 1529753.

Webcompat Priority: --- → ?
Severity: normal → S3
Component: DOM: Events → DOM: UI Events & Focus Handling

This is still an issue but there is no known site currently affected by this bug.

Webcompat Priority: ? → ---
Flags: needinfo?(continuation)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: