New issue
Advanced search Search tips

Issue 677890 link

Starred by 6 users

Issue metadata

Status: Untriaged
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Feature



Sign in to add a comment

Feature Request: A Chrome Extension API for generating trusted synthetic key events

Reported by eejdoo...@gmail.com, Jan 3 2017

Issue description

Synthetic events are untrusted and Chrome does not perform default actions on untrusted events.

https://groups.google.com/a/chromium.org/d/msg/blink-dev/OzHI2c2vkEo/9Bz-j4PhBAAJ

This means that extensions that must programmatically edit text, e.g. virtual keyboard and dictation extensions, are difficult to implement. And when inevitably implemented, they are buggy. See  Google's own virtual keyboard extension, which appears to have hard coded logic to handle Gmail's input box and falls apart when it encounters nontrivial textual elements like the Monaco editor.

https://chrome.google.com/webstore/detail/google-input-tools/mclkkofklkfljcocdinagocijmpgbhab

https://microsoft.github.io/monaco-editor/

This message discusses allowing untrusted events to trigger default behaviors and generating trusted events from chrome extensions.

https://groups.google.com/a/chromium.org/d/msg/blink-dev/OzHI2c2vkEo/Xio_AM_2AQAJ

This API already implements the requested functionality, but is limited to Chrome OS.
https://developer.chrome.com/extensions/input_ime#method-sendKeyEvents

Supporting it on other platforms would make it possible to build better accessibility tools. 
 
Labels: -OS-Mac

Comment 2 by ajha@chromium.org, Jan 4 2017

Components: Platform>Extensions>API
Labels: -Type-Bug Type-Feature
Status: Untriaged (was: Unconfirmed)
Assuming this is a Feature Request changing the status to Untriaged so that the issue could get addressed.
Thank You.
...I'd like to extend this feature request to general events of any type.

I also filed a similar issue on Bugzilla.

https://bugzilla.mozilla.org/show_bug.cgi?id=1348213

Sign in to add a comment