MicrosoftEdge / MicrosoftEdge/WebView2Feedback
[Problem/Bug]: How to properly use AddBrowserExtensionAsync in UWP with WebView2?
@chetanpandey1266 is already working on this.
Since Jan 15, 2025.
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
What happened?
I am trying to use the AddBrowserExtensionAsync method in a UWP application with WebView2, but I am encountering issues. According to the Microsoft documentation, it seems that this method should allow me to add browser extensions to the WebView2 control. However, I am not able to get it working as expected.
Importance
Moderate. My app's user experience is affected, but still usable.
Runtime Channel
Stable release (WebView2 Runtime), Prerelease (Edge Canary/Dev/Beta)
Runtime Version
131.0.2903.112
SDK Version
1.0.2903.40
Framework
WinUI2/UWP
Operating System
Windows 10, Windows 11
OS Version
23H2
Repro steps
Steps to Reproduce:
Set up a UWP project with WebView2.
Attempt to use the AddBrowserExtensionAsync method to add a browser extension.
Observe that the extension is not loaded or the method throws an exception.
Expected Behavior:
The AddBrowserExtensionAsync method should successfully add the specified browser extension to the WebView2 control.
Actual Behavior:
The extension is not loaded, or the method throws an exception (please specify the exception if any).
Additional Information:
WebView2 SDK Version: [Insert version here]
UWP Target Version: [Insert version here]
OS Version: [Insert version here]
Any relevant code snippets or error messages.
Repros in Edge Browser
No, issue does not reproduce in the corresponding Edge version
Regression
No, this never worked
Last working version (if regression)
N/A
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.