go-webview2 icon indicating copy to clipboard operation
go-webview2 copied to clipboard

InPrivate or Incognito mode?

Open ThalesC opened this issue 2 years ago • 2 comments

First of all, thanks for the package, it's awesome!

I wasn't able to find a way to open a window InPrivate or Incognito, am I missing something?

If it's not implemented, I saw here that WebView2 now supports InPrivate mode via CoreWebView2ControllerOptions.IsInPrivateModeEnabled and I was wondering if there are any plans on implementing it or if it is even possible?

ThalesC avatar Apr 29 '23 06:04 ThalesC

While there isn't really a roadmap for specific features, this doesn't seem too hard to support. It looks like we need to add interfaces up to ICoreWebView2Environment10 to get access to CreateCoreWebView2ControllerOptions and CreateCoreWebView2ControllerWithOptions. So, need the underlying COM implementations for those things, then some kind of API that would expose it, and probably feature detection to continue supporting WebView2 versions that don't have ICoreWebView2Environment10.

I'm not currently working on it, though. When I touch back to this project I'd like to take a look at cleaning up the pull request that's been sitting here, first. If anyone else wants to take a crack at this please feel free.

jchv avatar May 04 '23 04:05 jchv

It would be great to have this feature.

arman-g avatar Jul 01 '24 15:07 arman-g