Reputation: 3547
How can I use XPCOM to import cookies in browser ? This is the documentation I read. https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsICookieManager
Upvotes: 0
Views: 115
Reputation:
You can't. Since the release of Firefox 57 in November 2017, XPCOM is purely an internal Firefox API -- it is not available for use by web sites or extensions.
If you are developing a Firefox extension, use the cookies
API.
If you are developing a web site, you cannot interact with cookies outside your domain.
Upvotes: 1