Is there a way to listen to event when a cookie is changed in a Firefox Extension

后端 未结 2 819
太阳男子
太阳男子 2021-01-04 01:15

I am trying to build a firefox extension which listens to events when a cookie is changed by any domain from any page and handle it accordingly. Is there an easy way to do t

相关标签:
2条回答
  • 2021-01-04 01:32

    http://jsfiddle.net/ArondeParon/5RsTm/4/

    try changing the cookie, it will pop up an alert.

    0 讨论(0)
  • 2021-01-04 01:38

    You can listen to the cookie-changed topic with the observer service.

    0 讨论(0)
提交回复
热议问题