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."]
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744344124a4569580.html
评论列表(0条)