MicrosoftEdge / MicrosoftEdge/WebView2Feedback

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

Open
#5,134 4 comments 9 reactions 1 assignee View on GitHub

@venky8951 is already working on this.

Since Mar 5, 2025.

bug
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

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

https://github.com/user-attachments/assets/dbdf5c13-39fd-42b3-9eec-eaa8ec287e90

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.