How to import cookies with XPCOM

109 Views Asked by At

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

1

There are 1 best solutions below

1
AudioBubble On

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.