最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin4浏览0评论

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."]
发布评论

评论列表(0)

  1. 暂无评论