admin管理员组文章数量:1405627
Suppose you have a Firefox extension. And then you go to about:debugging => this firefox => and then you click on "Inspect" on the extension...
It will then open about:devtools-toolbox for that extension, and you can click on "Storage". One of the storage options is "Extension Storage"...
My question is where is the data for this "Extension Storage" stored in in the filesystem so that I can access it programatically with some script outside Firefox?
If I'm not mistaken, they may be stored in some .sqlite file in the Firefox profile directory, but which .sqlite file exactly is it stored in?
Note: "Extension Storage" are the data stored using this API: using the browser.storage.local.get()
and browser.storage.local.set()
methods
Suppose you have a Firefox extension. And then you go to about:debugging => this firefox => and then you click on "Inspect" on the extension...
It will then open about:devtools-toolbox for that extension, and you can click on "Storage". One of the storage options is "Extension Storage"...
My question is where is the data for this "Extension Storage" stored in in the filesystem so that I can access it programatically with some script outside Firefox?
If I'm not mistaken, they may be stored in some .sqlite file in the Firefox profile directory, but which .sqlite file exactly is it stored in?
Note: "Extension Storage" are the data stored using this API: https://developer.mozilla/en-US/docs/Mozilla/Add-ons/WebExtensions/API/storage/local using the browser.storage.local.get()
and browser.storage.local.set()
methods
1 Answer
Reset to default 7It used to be inside certain storage.js
files, but is now stored with IndexedDB logic. You'll find it at [firefox profile folder]/storage/default/moz-extension+++[the extension id]^userContextId=4294967295/idb/3647222921wleabcEoxlt-eengsairo.sqlite
In there, the data is stored pressed and not readable without some tooling.
Sources:
- mozillazine: Where is Firefox's storage.local backend stored on disk?
- Mozilla Add-ons Community Blog: New backend for storage.local API
- r/firefox: How can I read the sqlite files of firefox addons
[Note: "The moderators of r/firefox have set the munity as private. Only approved members can view and take part in its discussions."]
版权声明:本文标题:javascript - Where are the data for "Extension Storage" of a firefox extension stored in? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744344124a2601655.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论