如何使用XPCOM导入Cookie

时间:2019-07-13 20:30:17

标签: javascript firefox xpcom

如何使用XPCOM在浏览器中导入Cookie?这是我阅读的文档。 https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsICookieManager

1 个答案:

答案 0 :(得分:1)

不能。自2017年11月Firefox 57发布以来,XPCOM纯粹是内部Firefox API-网站或扩展程序不可用。

如果要开发Firefox扩展,请使用the cookies API

如果您正在开发网站,则不能与域外的Cookie进行交互。