Skip to content

[BUG] Firefox keyboard simulation does not trigger Meta key #9755

Closed

Description

Context:

  • Playwright Version: 1.16.1
  • Operating System: Ubuntu 18.04
  • Node.js version: 12.22
  • Browser: Firefox

Steps to reproduce

  1. Clone the repo: [email protected]:canonic-epicure/playwright-9029-repro.git
  2. In the repo folder: npm i
  3. node server.js
    Observe the output:
nickolay@frontier:~/workspace/typescript/playwright-9029-repro$ node server.js
Subscription set
Typing
HAS META:  false
HAS META:  false
  1. Now change the launcher to Chromium (line 16 in client.js):
const browser   = await playwright.chromium.launch({ headless: false });

Observe the output:

nickolay@frontier:~/workspace/typescript/playwright-9029-repro$ node server.js
Subscription set
Failed to load resource: the server responded with a status of 404 (Not Found)
Typing
HAS META:  true
HAS META:  true
  1. The HAS META console output indicates the presence of the Meta key modifier. In the server.js we simply type in the input field, holding the Meta modifier prior.
  2. Webkit works correctly.

Activity

  1. JoelEinbinder commented on Oct 26, 2021

    @JoelEinbinder
    Contributor

    This looks like it's working as intended to me. The holding down the windows key on my Ubuntu machine does not set the meta boolean on events.

  2. canonic-epicure commented on Oct 27, 2021

    @canonic-epicure
    Author

    Hm.. You are right, seems like a native Firefox behavior. Does not seem to work on Windows either. Works in Chrome.

    Worth being mentioned in the docs I think.

  3. JoelEinbinder commented on Oct 27, 2021

    @JoelEinbinder
    Contributor

    You can file a bug with Firefox about it, but I don't think we should start documenting every inconsistency in the browsers. There are a lot :)

  4. canonic-epicure commented on Oct 28, 2021

    @canonic-epicure
    Author

    Joel Einbinder (@JoelEinbinder)

    but I don't think we should start documenting every inconsistency in the browsers

    I disagree. The whole reason for this bug report was an assumption that all Playwright features works the same way across all browsers. It is obviously not correct and it deserves a separate documentation page. Otherwise its only a matter of time, when this (or similar) issue will be reported again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions