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

InPrivate or Incognito mode? #64

Open
ThalesC opened this issue Apr 29, 2023 · 2 comments
Open

InPrivate or Incognito mode? #64

ThalesC opened this issue Apr 29, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@ThalesC
Copy link

ThalesC commented Apr 29, 2023

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?

@jchv jchv added the enhancement New feature or request label May 4, 2023
@jchv
Copy link
Owner

jchv commented May 4, 2023

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.

@arman-g
Copy link

arman-g commented Jul 1, 2024

It would be great to have this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants