Open Bug 1312867 Opened 8 years ago Updated 2 years ago

Click on element with overflow style property is trigger when mouse up outside the element

Categories

(Core :: DOM: Events, defect, P3)

2.0 Branch
All
Unspecified
defect

Tracking

()

Tracking Status
firefox49 --- wontfix
firefox50 --- wontfix
firefox51 --- fix-optional
firefox52 --- fix-optional
firefox53 --- fix-optional

People

(Reporter: tdelmas, Unassigned)

References

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

Details

(Keywords: regression)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0
Build ID: 20161019084923

Steps to reproduce:

Start click (mouse down) on the first div, move the mouse to the second div, release the mouse (mouse up). 

<div onclick="alert()" style="overflow:scroll">
Mouse down here
</div>
<div>
Then mouse up here
</div>

Live example: https://jsfiddle.net/2mhqmnwy/


Actual results:

The onclick (alert) is trigged


Expected results:

The onclick (alert) is not trigged
Hardware: Unspecified → All
Regression window:
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=0d8bf91aa71e&tochange=2348611d0230

Regressed by:
c9c2ad1bf872	Olli Pettay — Bug 556493 - No click fired when mousedown on the text of an element and mouseup on empty area, r=jst
Blocks: 556493
Status: UNCONFIRMED → NEW
Component: Untriaged → DOM: Events
Ever confirmed: true
Keywords: regression
Product: Firefox → Core
Version: 51 Branch → 2.0 Branch
Attached file testcase (deleted) —
Olli was correct in https://bugzilla.mozilla.org/show_bug.cgi?id=556493#c9.

Related to bug 1257816 and bug 1187591?
Flags: needinfo?(bugs)
Depends on: 1187591
Flags: needinfo?(bugs)
Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: