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

[feat] API to clear webview-managed data #914

Closed
tauri-bot opened this issue Mar 28, 2023 · 2 comments · Fixed by #915
Closed

[feat] API to clear webview-managed data #914

tauri-bot opened this issue Mar 28, 2023 · 2 comments · Fixed by #915

Comments

@tauri-bot
Copy link

This issue has been upstreamed from tauri-apps/tauri#6567

Describe the problem

My application uses cookies/localStorage on the javascript side for various purposes.

I don't see a clear way to clear all the stuff stored by the Webview engine. I could have the javascript side clear these, but there are things that this side can't clear like disk cache, etc

Describe the solution you'd like

I want to put a native button like 'Logout' that clears all this data.

An API on app/app_handle that clears this data might make sense. Maybe it needs to be part of exit or relaunch?

Alternatives considered

I considered manually deleting some of the path_resolver() directories, but directories like /Users/pttamkin/Library/HTTPStorage/{pkg} and /Users/pttamkin/Library/WebKit/{pkg} aren't captured here. Also not sure I can delete these while my app is running?

Additional context

No response

@wusyong
Copy link
Member

wusyong commented Apr 3, 2023

I'm curious about what happened if the PR is merged. Will this issue transfer back to tauri repo itself?

@amrbashir
Copy link
Member

It will post a comment in the original issue that this issue is closed and add backlog label

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants