javascript - Where are the data for "Extension Storage" of a firefox extension stored in? - Stack Overflow

Suppose you have a Firefox extension. And then you go to about:debugging => this firefox => and t

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

Share Improve this question asked Dec 25, 2020 at 12:34 blueskies27962893blueskies27962893 711 silver badge2 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 7

It 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条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信