Description
What happened?
After the extension is added with the AddBrowserExtensionAsync
call, it seems to be disabled immediately. I.e. a call to the GetBrowserExtensionsAsync
returns a CoreWebView2BrowserExtension
object with IsEnabled == false
. A call to extension.EnableAsync(true)
doesn't help and the extension remains disabled.
This is a regression in the pre-release versions of the Edge runtime. AddBrowserExtensionAsync
works as expected with the current Stable Edge runtime (133.0.3065.69). The current Beta (134.0.3124.8), Dev (134.0.3124.5), and Canary (135.0.3145.0) runtimes have this issue.
Importance
Important. My app's user experience is significantly compromised.
Runtime Channel
Prerelease (Edge Canary/Dev/Beta)
Runtime Version
134.0.3124.5
SDK Version
1.0.3065.39
Framework
WPF
Operating System
Windows 11
OS Version
26100.3194
Repro steps
Please use my WebView2Samples fork with the code to reproduce the issue.
- Start the
WebView2WpfBrowser
. - Use
Settings\Enable Extensions
menu item. TheExtensions
window will appear. - Click
Add
at the bottom. TheAdd extension
window will appear with a prepopulated path to a test extension. - Click
OK
to add the extension.
Expected \ works with Stable runtime:
- The "Test Extension" line is added to the list of extensions.
- The
edge://serviceworker-internals
page lists the extension service worker.

Actual \ broken in pre-release runtimes:
- The "Disabled Test Extension" line is added to the list of extensions.
- The
edge://serviceworker-internals
page does not list the extension service worker.

Repros in Edge Browser
No, issue does not reproduce in the corresponding Edge version
Regression
Regression in newer Runtime
Last working version (if regression)
Runtime 133.0.3065.69
Activity