Skip to content

[Problem/Bug]: WebView2CompositionControl ArgumentException: The parameter is incorrect on hiding and showing a WebView2 hosted in a Visual Studio tool window #5134

Open
@segevfiner

Description

@segevfiner

What happened?

If you hide the "WebView2 Focus Issue" tool window using the pin button and then click to show it again, an exception will be raised which will crash Visual Studio

Screen Shot

record2.webm

Importance

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

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

133.0.3065.92

SDK Version

1.0.3065.39

Framework

WPF

Operating System

Windows 11

OS Version

10.0.26100.0

Repro steps

  1. Git clone https://github.com/segevfiner/Webview2FocusIssueVSIX
  2. Open the solution, and run it (F5).
  3. Click View -> Other Windows -> WebView2 Focus Issue
  4. Click the pin button ("Auto Hide") on the opened tool window.
  5. Click the hidden tool window tab.
  6. Visual Studio will crash with the described exception.

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