UWP - 1.0.0-experimental1 Webview2 Issues #3978
Unanswered
JohnDizzle
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have used these two functions/apis and they seem to work fine...
_webView.CoreWebView2?.CallDevToolsProtocolMethodAsync("Network.clearBrowserCookies", "{}");
_webView.CoreWebView2?.CallDevToolsProtocolMethodAsync("Network.clearBrowserCache", "{}");
But there are some features in dev tools that don't work like BlockedUrl's that I have tried.
My question is the history of the webview2 can't be deleted or removed. I even looked on the Google's Dev Protocol's Page and some methods work as I mentioned above by clearing cookies, and or my cache..
According the Google the history is the users right and not the developer, although building an app I want to offer the ability to delete all history of the WebView2. I understand that I can disable the cache folder, but doesn't stop the recording of the history file and who knows when the data will stop. It always add to the database.
I investigated further into the app {package} folder \located in the "(LocalState\EBWebView\Default) folder has a lot of files that are sqlite databases. ") and have discovered all the files that the webview2 uses, and one of them is the history file (without an .extension). I used DbExplorer to view and manipulated the history file manually, furthermore I can't seem to attach a console app using Microsoft.Data.Sqlite to open the database, but I have made an sqlite connection.
I have even deleted the file "history" through code and windows explorer, although it always is re-created on the launching of the app. (UWP).
I would like to have access to these files, although I know that these files are locked while the app is running, but I am trying to figure out a way of deleting the history totally. I know that different versions of the webview2's have the ability of deleting with options, although the UWP version is limited.
Beta Was this translation helpful? Give feedback.
All reactions