зеркало из https://github.com/mozilla/gecko-dev.git
730193bdb6
When eKeyPress event is dispatched from TabParent to a remote process, it should store edit command for all editor types. Then, copied WidgetKeyboardEvent in the remote process doesn't need to request the edit commands when its ExecuteEditCommands() is called. Note that this patch also changes a automated test, browser_bug1316330.js, that uses nsIDOMWindowUtils.dispatchDOMEventViaPresShell() to dispatch repeated keyboard events in the tab. However, it should use synthesizeKey() to emulate everything of native keyboard events and the API can dispatch repeated keyboard events too. (And the test has a bug. It tries to wait 0.5 sec when every keydown or keypress event. However, it fails since startTime is never initialized. This patch fixes this bug too.) MozReview-Commit-ID: IYhyxqH3Ch8 --HG-- extra : rebase_source : 0db911e8e6ea7fc537bda76f4cc0f8952cc13dd2 |
||
---|---|---|
.. | ||
browser | ||
html | ||
js | ||
mochitest | ||
reftest | ||
unit | ||
moz.build |