[FIX]EventUtils.js synthesizeKey doesn't do the right thing when keydown is prevented

RESOLVED FIXED

Status

Testing
Mochitest
RESOLVED FIXED
9 years ago
9 years ago

People

(Reporter: bz, Assigned: bz)

Tracking

Trunk
x86
Mac OS X
Points:
---
Bug Flags:
in-testsuite +

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

In particular, it needs to preventDefault the keypress before dispatching it, just like normal event handling does.
Summary: EventUtils.js synthesizeKey doesn't do the right thing when keydown is prevented → [FIX]EventUtils.js synthesizeKey doesn't do the right thing when keydown is prevented
Created attachment 335395 [details] [diff] [review]
Fix
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Attachment #335395 - Flags: review?(enndeakin)

Updated

9 years ago
Attachment #335395 - Flags: review?(enndeakin) → review+
Created attachment 335398 [details] [diff] [review]
Patch with the backend parts to make this actually work included
Pushed.
Flags: in-testsuite+
Status: ASSIGNED → RESOLVED
Last Resolved: 9 years ago
Resolution: --- → FIXED
Mass move of the rest of the Mochitest bugs from Core:Testing to Testing:Mochitest. Filter on MochitestMassMove to ignore.
Component: Testing → Mochitest
Product: Core → Testing
QA Contact: testing → mochitest
Version: unspecified → Trunk
You need to log in before you can comment on or make changes to this bug.