Closed
Bug 978154
Opened 11 years ago
Closed 11 years ago
preventDefault on a touch event don't prevent the mouse event emulation
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(firefox27 unaffected, firefox28 affected, firefox29 affected, firefox30 affected)
RESOLVED
DUPLICATE
of bug 977226
Tracking | Status | |
---|---|---|
firefox27 | --- | unaffected |
firefox28 | --- | affected |
firefox29 | --- | affected |
firefox30 | --- | affected |
People
(Reporter: remi.ducceschi, Unassigned)
References
(Blocks 1 open bug)
Details
(Keywords: regression, testcase)
Attachments
(1 file)
I use "preventDefault()" inside a callback function on a touch event in order to prevent the mouse event emulation.
It appears that this bug appears only on android (not on windows 8, but not tested on firefox OS).
The emulated mouse event is send while it should not!
Firefox acts like if there is not the "preventDefault()" call at the beginning of the function.
originally posted on: https://bugzilla.mozilla.org/show_bug.cgi?id=819102#c7 (but as it appears to be specific to android, I repost it here)
------
I add a file to test this bug:
Example to test the reported bug. you have to test it from a touchscreen.
If you tap on the text, the checkbox acts correctly.
If you tap on the square of the checkbox (make sure to zoom enough), you'll see that 2 events are sent to the checkbox, so it doesn't act correctly. Moreover, you'll see in the console that a mouse event is sent (the variable "i" is printed) while it shouldn't.
Comment 1•11 years ago
|
||
This appears to be a regression affecting Firefox 28.0 beta and later. It also affects scrolling and links clicking (not just clicks on checkboxes).
Blocks: 819102
Status: UNCONFIRMED → NEW
status-firefox27:
--- → unaffected
status-firefox28:
--- → affected
status-firefox29:
--- → affected
status-firefox30:
--- → affected
tracking-firefox28:
--- → ?
Ever confirmed: true
Flags: in-testsuite?
Hardware: x86 → All
Comment 2•11 years ago
|
||
Given the affected versions and symptoms, this sounds like a dupe of bug 977226. The current plan is to backout bug 960146 since it was likely the cause of this regression; we can verify this gets fixed as a result.
Depends on: 977226
Comment 3•11 years ago
|
||
After a backout of bug 960146, I can confirm that this is a dupe of bug 977226.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Updated•11 years ago
|
Keywords: regressionwindow-wanted
Updated•11 years ago
|
tracking-firefox28:
? → ---
Hello! I come here again because I'm facing this bug again, but this time on the desktop version, with the touch events emulated (ctrl+shift+M and then activate the touch emulation).
can anyone confirm?
Firefox for desktop 29.0 (Linux amd64)
Assignee | ||
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•