event.target refers to parent BUTTON instead of clicked IMG when IMG is child of BUTTON (inactive interative content inside <button>)
Categories
(Core :: DOM: Events, defect, P2)
Tracking
()
People
(Reporter: alwyne.edison, Assigned: smaug)
References
(Blocks 1 open bug, Regressed 2 open bugs, )
Details
(Whiteboard: [country-in] [js] [webcompat:p1][wptsync upstream])
User Story
Business driver: Long-ish tail of sites (Uber account recovery, Twitter, ...)
Attachments
(11 files, 2 obsolete files)
(deleted),
text/html
|
Details | |
(deleted),
text/html
|
Details | |
(deleted),
text/html
|
Details | |
(deleted),
text/html
|
Details | |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
masayuki
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review |
Comment 1•10 years ago
|
||
Reporter | ||
Comment 2•10 years ago
|
||
Updated•10 years ago
|
Reporter | ||
Comment 3•10 years ago
|
||
Comment 4•10 years ago
|
||
Reporter | ||
Comment 5•10 years ago
|
||
Comment 6•10 years ago
|
||
Updated•10 years ago
|
Comment 7•10 years ago
|
||
Assignee | ||
Comment 8•10 years ago
|
||
Comment 9•10 years ago
|
||
Comment 10•10 years ago
|
||
Comment 11•10 years ago
|
||
Assignee | ||
Comment 12•10 years ago
|
||
Comment 13•10 years ago
|
||
Comment 14•10 years ago
|
||
Comment 15•10 years ago
|
||
Comment 16•10 years ago
|
||
Comment 17•10 years ago
|
||
Reporter | ||
Comment 18•10 years ago
|
||
Comment 19•10 years ago
|
||
Comment 20•9 years ago
|
||
Comment 21•9 years ago
|
||
Comment 22•9 years ago
|
||
Comment 23•9 years ago
|
||
Comment 24•9 years ago
|
||
Comment 25•9 years ago
|
||
Comment 26•9 years ago
|
||
Comment 27•9 years ago
|
||
Comment 28•9 years ago
|
||
Assignee | ||
Comment 29•9 years ago
|
||
Comment 30•9 years ago
|
||
Assignee | ||
Comment 31•9 years ago
|
||
Comment 32•9 years ago
|
||
Comment 33•9 years ago
|
||
Assignee | ||
Comment 34•9 years ago
|
||
Comment 35•9 years ago
|
||
Comment 36•8 years ago
|
||
Comment 37•8 years ago
|
||
Assignee | ||
Updated•8 years ago
|
Assignee | ||
Updated•8 years ago
|
Assignee | ||
Comment 38•8 years ago
|
||
Assignee | ||
Comment 39•8 years ago
|
||
Assignee | ||
Comment 40•8 years ago
|
||
Assignee | ||
Comment 41•8 years ago
|
||
Comment 42•8 years ago
|
||
Updated•8 years ago
|
Comment 43•8 years ago
|
||
Comment 44•8 years ago
|
||
Updated•7 years ago
|
Updated•7 years ago
|
Updated•7 years ago
|
Updated•7 years ago
|
Comment 47•7 years ago
|
||
Comment 48•7 years ago
|
||
Updated•7 years ago
|
Updated•7 years ago
|
Updated•7 years ago
|
Updated•7 years ago
|
Comment 51•7 years ago
|
||
Updated•7 years ago
|
Updated•7 years ago
|
Updated•7 years ago
|
Comment 52•7 years ago
|
||
Assignee | ||
Comment 53•7 years ago
|
||
Updated•7 years ago
|
Updated•7 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Comment 58•6 years ago
|
||
Assignee | ||
Comment 59•6 years ago
|
||
Assignee | ||
Comment 60•6 years ago
|
||
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Comment 63•6 years ago
|
||
Assignee | ||
Comment 64•6 years ago
|
||
Assignee | ||
Comment 65•6 years ago
|
||
Assignee | ||
Comment 66•6 years ago
|
||
Assignee | ||
Comment 67•6 years ago
|
||
Comment 68•6 years ago
|
||
Assignee | ||
Comment 69•6 years ago
|
||
Comment 70•6 years ago
|
||
Assignee | ||
Comment 71•6 years ago
|
||
Comment 74•6 years ago
|
||
Updated•6 years ago
|
Assignee | ||
Comment 75•6 years ago
|
||
Assignee | ||
Comment 76•6 years ago
|
||
Comment 77•6 years ago
|
||
Comment 80•6 years ago
|
||
bugherder |
Comment 82•6 years ago
|
||
Assignee | ||
Comment 83•6 years ago
|
||
Comment 84•6 years ago
|
||
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Comment 90•6 years ago
|
||
Release Note Request (optional, but appreciated)
[Why is this notable]: Changes what gets detected as a click. Traditionally click in Gecko has meant
mousedown and mouseup happening on the same DOM element, but now Gecko doing similar thing as other browsers where click is dispatched on the common ancestor of mousedown target and mouseup target.
[Affects Firefox for Android]: Yes
[Suggested wording]:
[Links (documentation, blog post, etc)]:
Comment 93•6 years ago
|
||
I can confirm the following behavior is no longer reproducible. I verified using Fx 66.0b6 on Windows 10 x64, mac 10.14 and Ubuntu 16.04 LTS.
- Launch Firefox.
- Go to https://www.linkedin.com and log in.
- Hover over the following buttons : "About", "Help Center", "Privacy & Terms", "Advertising", "Business Services".
Actual result:
The drop down buttons are not highlighted while hovering.
Expected result:
All the buttons are highlighted while hovering.
Updated•6 years ago
|
Comment 94•6 years ago
|
||
Can someone verify this issue over Android devices in order to close this issue?
Thank you!
Comment 95•6 years ago
|
||
I'm guessing comment 94 was because this had "Platform: Other/Android" for some reason but really this affected all platforms. [updating to adjust that]
Anyway, though, I did verify that this is fixed in Nightly on my Android phone. I couldn't use the STR from comment 93 because hovering isn't a thing you can do on Android, so instead I used the testcase from duplicate bug 1342173. In that testcase, the "I am a button" text isn't tappable (i.e. nothing happens when you tap it) in Firefox 65 Release, but it is tappable in Firefox 67 Nightly, on Android.
--> Verified FIXED based on that and comment 93. Also, I filed bug 1529036 on one piece of this that I think remains un-fixed.
Comment 96•6 years ago
|
||
Just encountered this problem where on FF, when I click the child element of a button, the event.target shows the outer parent button and not the child, whereas on Chrome it shows the child.
Is there a work around for this?
Updated•6 years ago
|
Comment 97•6 years ago
|
||
@eric the only workaround is to not use a button. The good news is that this issue is now fixed and should happen in firefox 66, which will be released in about 1 month.
Of course our ESR release won't have it soon, our next ESR is 68 which will be out in October.
Comment 100•5 years ago
|
||
Coming to this late, but this sounds like something for the developer release notes on MDN rather than the user-facing ones on www.mozilla.org.
Comment 106•3 years ago
|
||
Restricting comments here to try and cut down on spam.
Updated•3 years ago
|
Description
•