8000 [Bug]: Have to blur focused webview before being able to focus a different webview · Issue #36199 · electron/electron · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[Bug]: Have to blur focused webview before being able to focus a different webview #36199
Open
@MRayermannMSFT

Description

@MRayermannMSFT

Preflight Checklist

Electron Version

21.2.0

What operating system are you using?

Windows

Operating System Version

Windows 11 Enterprise 22H2

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

  1. Have multiple webview
  2. Call .focus() on one of them
  3. Call .focus() on another

Expected: the other webview receives a focus event.

Actual Behavior

It doesn't. the expected only happens if you first call .blur() on whatever webview currently has focus.

Testcase Gist URL

https://gist.github.com/MRayermannMSFT/ab44ba14685c1930023c90a5d740b638

Additional Information

My gist has some buttons you can use to play around with focusing various webview/elements in the renderer DOM. The bug can most easily be seen to repro by using either of the "(no blur)" buttons. The focused counts of each thing should go up, but in actuality, whatever webview is focused second does not have its focus count incremented.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0