Skip to content

[Problem/Bug]: Focus goes haywire when dragging a Visual Studio tool window (VSIX extension) hosting WebView2CompositionControl #5118

Open
@segevfiner

Description

@segevfiner

What happened?

If you drag a Visual Studio tool window that hosts a WebView2CompositionControl, the focus will start to go haywire rapidly shifting between the tool window and something else, locking up the computer and you can't press anything.

record.webm

Importance

Important. My app's user experience is significantly compromised.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

133.0.3065.69

SDK Version

1.0.3065.39

Framework

WPF

Operating System

Windows 11

OS Version

10.0.26100.0

Repro steps

  1. Clone https://github.com/segevfiner/Webview2FocusIssueVSIX
  2. Open the solution and Visual Studio and run it (F5).
  3. Click View -> Webview2 Focus Issue.
  4. Drag the newly opened tool window.
  5. Focus will start to go haywire.

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

Don't know

Last working version (if regression)

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions