Closed Bug 1563205 Opened 7 years ago Closed 2 years ago

Simulate native key shortcuts with dispatchKeyEvent

Categories

(Remote Protocol :: CDP, task, P3)

task

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: jdescottes, Unassigned)

References

Details

We landed a basic implementation of Input::dispatchKeyEvent in Bug 1543142.

We intentionally left out some key combinations that can't be simulated with EventUtils or TextInputProcessor today. It seems to mostly affect native keyshortcuts on linux and osx. The goal of this bug is to add support for those key combinations, ideally in EventUtils.js directly so that all our test automation tools can benefit from it at the same time.

Some resources:

See also the comments from :masayuki in the previous bug:

See Also: → 1563206
Whiteboard: [puppeteer-alp
Whiteboard: [puppeteer-alp → [puppeteer-alpha]

The key combinations that most affect the gutenberg suite were added in Bug 1563206. The work in this bug represents a more general solution to the problem, which we don't need for alpha. If specific key bindings end up blocking many gutenberg tests in the near future, I suggest we file bugs for those as they come up.

Whiteboard: [puppeteer-alpha]

I don't see that this is needed for Puppeteer examples. When checking those files I cannot see any native key combination.

No longer blocks: puppeteer-examples
Priority: -- → P3
Component: CDP: Input → CDP
Severity: normal → S3

Native events won't work here because these are not compatible with headless mode. Instead widget events need to be dispatched via the parent process. Given the complexity this will never be done for CDP. For WebDriver BiDi we have bug 1773393.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.