[英]In what directory lies the local storage of a webview on macOS?
In other words how can I delete an app's webview data without having access to the web developer tools of the webview? 换句话说,如何在不访问Webview的Web开发人员工具的情况下删除应用程序的Webview数据? Where is it stored? 它存储在哪里?
Searching through my ~/Library
folder I stumbled upon it: 在我的~/Library
文件夹中搜索时,我偶然发现了它:
A webview of an application with the package id your.package.id
will store localstorage, cookies, etc. in /Users/your-username/Library/WebKit/your.package.id
(where your-username needs to be replaced by whatever your username is ;-). 程序包ID为your.package.id
的应用程序的your.package.id
将在/Users/your-username/Library/WebKit/your.package.id
(其中的your-username需要替换为任何用户名)中存储本地存储,Cookie等。您的用户名是 ;-)。
So deleting this directory will clear all data created by the webview. 因此,删除此目录将清除webview创建的所有数据。
I run macOS Mojave, but my guess is this won't change often. 我运行macOS Mojave,但是我猜这不会经常改变。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.