Skip to content

[Problem/Bug]: Extension is disabled after it is added with AddBrowserExtensionAsync with a pre-release runtime #5113

Open
@seldoff

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.

  1. Start the WebView2WpfBrowser.
  2. Use Settings\Enable Extensions menu item. The Extensions window will appear.
  3. Click Add at the bottom. The Add extension window will appear with a prepopulated path to a test extension.
  4. 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.
Image

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.
Image

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Labels

bugSomething isn't workingregressionSomething used to work but doesn't anymoretrackedWe are tracking this work internally.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions