Long press on text opens context menu from adjacent links
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(firefox-esr68 wontfix, firefox73 wontfix, firefox74 wontfix, firefox75 fixed)
People
(Reporter: mcomella, Assigned: kats)
References
Details
(Keywords: regression)
Attachments
(2 files)
Comment 1•9 years ago
|
||
Reporter | ||
Comment 2•9 years ago
|
||
Comment 3•9 years ago
|
||
Comment 4•9 years ago
|
||
Updated•9 years ago
|
Comment 6•9 years ago
|
||
Comment 7•9 years ago
|
||
Comment 8•9 years ago
|
||
Comment 9•9 years ago
|
||
Comment 10•9 years ago
|
||
Comment 11•9 years ago
|
||
Comment 12•9 years ago
|
||
Comment 13•9 years ago
|
||
Comment 14•9 years ago
|
||
Updated•9 years ago
|
Assignee | ||
Comment 16•5 years ago
|
||
Reopening this, as it has come back with the re-enabling of mouse event retargeting in bug 1618532. I intend to disable retargeting on long-presses to avoid this problem.
Comment 17•5 years ago
|
||
Bugbug thinks this bug is a regression, but please revert this change in case of error.
Assignee | ||
Comment 18•5 years ago
•
|
||
I was looking at this and one of the gotchas is that the mousemove event that gets generated just before the contextmenu/mouselongtap events here triggers the nearest link to be highlighted as :hover, even if the contextmenu/mouselongtap are not retargeted. So we need to suppress retargeting that mousemove event as well. This is probably good from a consistency standpoint anyway, because scripts that are listening for move events and contextmenu events might expect the last move to have the same coordinates as the contextmenu event. So if we don't retarget any of those we can preserve that invariant.
Assignee | ||
Comment 20•5 years ago
|
||
Assignee | ||
Comment 21•5 years ago
|
||
Assignee | ||
Comment 22•5 years ago
|
||
Instead of just special-casing the eContextMenu and eMouseLongTap events in
PositionedEventTargeting, this adds a mechanism to suppress retargeting for
any events dispatched from a particular code block. This allows us to also
suppress retargeting the mousemove that precedes the eContextMenu, while still
retargeting any other mousemove events (e.g. the one that precedes a click).
Doing this is important because if the mousemove is retargeted, it can trigger
the hover pseudoclass CSS on an element when that element is not actually
going to be activated at all, and can be confusing to the user.
Depends on D65211
Comment 23•5 years ago
|
||
Comment 24•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/d59cc3f521d3
https://hg.mozilla.org/mozilla-central/rev/012a83782d3d
Updated•5 years ago
|
Updated•4 years ago
|
Description
•