-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
feat(core): expose Wry's with_incognito
to Tauri on the WindowBuilder::incognito
function.
#6767
Conversation
with_incognito
to Tauri on the WebViewBuilder::enable_incognito
function.
with_incognito
to Tauri on the WebViewBuilder::enable_incognito
function.with_incognito
to Tauri on the WindowBuilder::enable_incognito
function.
with_incognito
to Tauri on the WindowBuilder::enable_incognito
function.with_incognito
to Tauri on the WindowBuilder::enable_incognito
function.
with_incognito
to Tauri on the WindowBuilder::enable_incognito
function.with_incognito
to Tauri on the WindowBuilder::enable_incognito
function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution.
This option needs to also be added to the tauri config and js API
with_incognito
to Tauri on the WindowBuilder::enable_incognito
function.with_incognito
to Tauri on the WindowBuilder::incognito
function.
I'm not sure if the JS api works so that'll need some testing. |
I think the JS api is broken on all versions of Tauri it seems. |
I'll put this back to Draft until I finish rebasing. |
Alright, already rebased. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One last small nit-pick
I think after this I'll probably pulling a small PR for the JS api, but if you can do it that would be nice |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
Co-authored-by: Hyphrio <notmynn@proton.me>
What kind of change does this PR introduce?
Does this PR introduce a breaking change?
Checklist
fix: remove a typo, closes #___, #___
)Other information
While
WebViewBuilder::data_directory
could simulate incognito mode by setting this to a temporary directory, that is annoying to use and error-prone as users could forget deleting the directory, thus creating large unnecessary directories, filling up the user's storage.This PR merely exposes
with_incognito
from tauri-apps/wry#916 to Tauri though the newenable_incognito
function at theWindowBuilder
, which would allow for a real incognito mode that would be useful for things that need incognito mode, like webview sign-ins.NOTE: Requires Wry 0.27.3 or higher, thus this should be merged for 2.0.