Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
incognito
- salvadordf
- Posts: 4564
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: incognito
WebView2 always uses some directory on the disk for the user data, even when you leave GlobalWebView2Loader.UserDataFolder empty.
You could set GlobalWebView2Loader.UserDataFolder to a directory on a RAM disk drive :
https://beebom.com/create-ram-disk-windows-10-super-fast-read-write-speeds/
https://answers.microsoft.com/en-us/windows/forum/all/create-a-ram-disk-drive-in-windows-7-and-windows/cd42aac4-8b0e-4b61-a2ea-9560a3e17d5b
The incognito mode in WebView2 can be enabled by setting these properties before the TWVBrowserBase.CreateBrowser call :
You could set GlobalWebView2Loader.UserDataFolder to a directory on a RAM disk drive :
https://beebom.com/create-ram-disk-windows-10-super-fast-read-write-speeds/
https://answers.microsoft.com/en-us/windows/forum/all/create-a-ram-disk-drive-in-windows-7-and-windows/cd42aac4-8b0e-4b61-a2ea-9560a3e17d5b
The incognito mode in WebView2 can be enabled by setting these properties before the TWVBrowserBase.CreateBrowser call :
- TWVBrowserBase.IsInPrivateModeEnabled := True;
- TWVBrowserBase.ProfileName := 'MyIncognitoProfileName';
Re: incognito
If the browser follows these rules, will it delete the directories created by itself?
- salvadordf
- Posts: 4564
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: incognito
No but you can use this to delete all the cache, cookies, local storage data, etc :
The RAM drive contents don't remain on the computer after rebooting.
Code: Select all
TWVBrowserBase.ClearDataForOrigin('*');