Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Problem/Bug]: WebView2 AreBrowserExtensionsEnabled Not working #4650

Open
duyngle opened this issue Jun 26, 2024 · 1 comment
Open

[Problem/Bug]: WebView2 AreBrowserExtensionsEnabled Not working #4650

duyngle opened this issue Jun 26, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@duyngle
Copy link

duyngle commented Jun 26, 2024

What happened?

We're currently exploring the WebView2 extensions API on WinUI 3. When we tried to enable it, we encountered the following error:
No such interface supported.

Our WinAppSDK version: 1.5.240607001

Importance

Blocking. My app's basic functions are not working due to this issue.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

126.0.2592.68

SDK Version

1.0.2210.55

Framework

WinUI3/WinAppSDK

Operating System

Windows 11

OS Version

22631.3737

Repro steps

Here is how we plan to call it

var environmentOptions = new CoreWebView2EnvironmentOptions();
environmentOptions.AreBrowserExtensionsEnabled = true;

CoreWebView2Environment environment = await CoreWebView2Environment.CreateWithOptionsAsync("", userDataFolder: null, environmentOptions);
await LiWebView.EnsureCoreWebView2Async(environment);

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

No, this never worked

Last working version (if regression)

No response

@duyngle duyngle added the bug Something isn't working label Jun 26, 2024
@dianaqu
Copy link
Contributor

dianaqu commented Jun 26, 2024

Could you try a newer SDK version? I see the AreBrowserExtensionsEnabled API was promoted to stable in 120.0.2210.66, But our SDK version released was 10.0.2210.55. AreBrowserExtensionsEnabled might still in experimentation interface for this SDK release.

I suggest most recent SDK since we had to fix GetBrowserExtensionsAsync issue for one of the SDK as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants