Closed Bug 1095812 Opened 10 years ago Closed 10 years ago

Phantom trusted keyboard events with incorrect timeStamp

Categories

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

33 Branch
x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: ruvim.pinka, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0
Build ID: 20141027150301

Steps to reproduce:

Scrolling a page using touch-pad with double-finger (namely on inoreader.com website), without touching a keyboard.


Actual results:

From time to time a phantom keyboard event occurs, usually ArrowLeft or ArrowRight key. In all these cases event.isTrusted is true, and event.timeStamp is exactly "10".



Expected results:

Trusted keyboard events should not be generated without key pressing.
Component: Untriaged → Event Handling
Product: Firefox → Core
The attached user script demonstrates that the issue is not related to any specific website.
(In reply to comment #1)
Using this userscript, I noticed that Back/Forward touchpad gestures produce the messages in log like the following:

10:02:15.173 "bug, keydown (code, key, timestamp, trusted): 18,Alt,10,true"
10:02:15.182 "bug, keydown (code, key, timestamp, trusted): 37,Left,10,true"
10:02:16.278 "bug, keydown (code, key, timestamp, trusted): 18,Alt,10,true"
10:02:16.288 "bug, keydown (code, key, timestamp, trusted): 39,Right,10,true"

For Back/Forward navigation the three-finger swipe left/right gesture is used. Apparently, the installed ASUS Elantech Touchpad driver (version 10.5.9.0) simulates these keyboard events.

And certainly the bug is that this driver occasionally generates the Left/Right keyboard events while scrolling using two-finger swipe gesture.

The alternative ASUS Smart Gesture driver (version 2.2.14) doesn't have this bug. Unfortunately, Back/Forward navigation gestures of this driver don't work in Firefox, see Bug#905386. Moreover, scroll gesture works inconsistency in this driver.

So, I suggest to use certain userscript to prevent buggy keyboard events as temporary workaround.
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
Just for reference: Elantech Touchpad driver version 11.5.15.5 generates far more phantom keyboard events in Firefox, although with correct time stamp now — so, it is harder to filter them out. Moreover, its helper application doesn't work  without administrative privileges.
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: