【问题标题】:Where are the data for "Extension Storage" of a firefox extension stored in?Firefox 扩展的“扩展存储”的数据存储在哪里?
【发布时间】:2022-03-14 21:38:45
【问题描述】:

假设您有一个 Firefox 扩展程序。然后你去 about:debugging => this firefox => 然后你点击扩展上的“Inspect”...

然后它将为该扩展打开 about:devtools-toolbox,您可以单击“存储”。存储选项之一是“扩展存储”...

我的问题是这个“扩展存储”的数据存储在文件系统中的什么位置,以便我可以使用 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() 方法

【问题讨论】:

    标签: javascript sqlite firefox firefox-addon firefox-addon-webextensions


    【解决方案1】:

    它曾经位于某些storage.js 文件中,但现在使用 IndexedDB 逻辑存储。你可以在[firefox profile folder]/storage/default/moz-extension+++[the extension id]^userContextId=4294967295/idb/3647222921wleabcEoxlt-eengsairo.sqlite找到它

    在那里,数据被压缩存储,不可读without some tooling。

    来源:1、2、3

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-04-07
      • 2013-01-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多