Bug #84
closedThe browser never completely clears the cache
0%
Description
Hello, I discovered a strange behaviour concerning the cache clean-up mechanism. Steps:
- Do a fresh install of Privacy Browser and start it
- Open settings, check "Enable JavaScript by default" and change the User agent to "Firefox 48 on Android 6.0.1"
- Go to https://mobile.twitter.com/support and wait for the page to load (tap on the shield to enable JavaScript if the page won't load)
- Bookmark the page for convenience
- Now, disconnect the device from the Internet: Wi-Fi, mobile data and everything. Go offline.
- Close the browser using "Clear and Exit"
- Through Android settings, force close Privacy Browser. Clear the Cache and reboot the device if you want
- Restart Privacy Browser and open the previously created bookmark
A ghost of the Twitter website will show up, with icons, buttons and cookie bar. From where it came from? Why the browser does not simply show an error saying that there is no Internet and so it can't load the URL?
I think the culprit here is the WebView, and maybe... IndexedDB or similar? The only way I found to delete that strange cache, is to clear all the Privacy Browser data through Android settings. Other WebView based browsers do the same thing (Lightning). Can you investigate on this? Thanks!
Updated by Soren Stoutner almost 8 years ago
The data is stored in:
/data/data/com.stoutner.privacybrowser.standard/app_webview/Service Worker/CacheStorage/
Updated by Soren Stoutner almost 8 years ago
There appears to be no way to delete these cached files. A bug report has been filed with Google: https://code.google.com/p/android/issues/detail?id=233826&thanks=233826&ts=1486670530.
Updated by Soren Stoutner almost 8 years ago
- Status changed from New to In Progress
Updated by Soren Stoutner almost 8 years ago
- Status changed from In Progress to Closed
It turns out we can manually delete the entire `app_webview` folder on `Clear and Exit`. This is a nice solution because it gets rid of a bunch of cruft `WebView` leaves lying around.
Fixed in commit https://git.stoutner.com/?p=PrivacyBrowser.git;a=commitdiff;h=4474c3d7c1c831fa46a3bfc17056bbd87ecacb9f.
Updated by Soren Stoutner almost 6 years ago
- Priority changed from 2 to Next Release