MicrosoftEdge / WebView2Feedback

Feedback and discussions about Microsoft Edge WebView2
https://aka.ms/webview2
452 stars 55 forks source link

Profile support for Windows App SDK #2933

Closed simon-knuth closed 1 year ago

simon-knuth commented 2 years ago

Support for multiple profiles officially reached stable in May 2022. I'd love to be able to use this in a Windows App SDK application, but building blocks such as CoreWebView2ControllerOptions or CoreWebView2Profile appear to be absent from the bundled SDK.

Is support for these planned already? Can we use any kind of workaround in the meantime, e.g. passing a profile name as a parameter? Am I perhaps even missing something and this is already available?

AB#33760896

victorthoang commented 1 year ago

Hello @simon-knuth,

I've marked this feature request as tracked. We will see if there is already something being worked on at the end of our week during our sprint review.

Victor

simon-knuth commented 1 year ago

Hi @victorthoang, did you already get a chance to find out more about this?

simon-knuth commented 1 year ago

CoreWebView2Controller now appears to be fully supported in the Windows App SDK, so profiles should be available for use.

Unfortunately, CoreWebView2CompositionController is not compatible with WinUI3 right now, so in order to use profiles, developers need to switch to basic HWND hosting. This requires significant investment and imposes a lot of restrictions on the rest of the UI.