sqlite Firefox扩展的“扩展存储”数据存储在哪里?

kyxcudwk  于 2023-06-23  发布在  SQLite
关注(0)|答案(1)|浏览(253)

假设你有Firefox扩展。然后你转到about:debugging => this firefox =>然后你点击扩展上的“Inspect”。
然后它将打开该扩展的about:devtools-toolbox,您可以点击“Storage”。其中一个存储选项是“扩展存储”...
我的问题是这个“扩展存储”的数据存储在文件系统中的什么地方,这样我就可以用Firefox之外的一些脚本程序化地访问它了?
如果我没记错的话,它们可能存储在Firefox配置文件目录中的某个.sqlite文件中,但是它到底存储在哪个.sqlite文件中呢?
注:“扩展存储”是使用此API存储的数据:https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/storage/local使用browser.storage.local.get()browser.storage.local.set()方法

v8wbuo2f

v8wbuo2f1#

它曾经位于某些storage.js文件中,但现在使用IndexedDB逻辑存储。你可以在[firefox profile folder]/storage/default/moz-extension+++[the extension id]^userContextId=4294967295/idb/3647222921wleabcEoxlt-eengsairo.sqlite找到它
在那里,数据被压缩存储并且不可读without some tooling
来源:

[Note:“r/firefox的版主已将社区设置为私有。只有获得批准的成员才能查看和参与其讨论。"]

相关问题