I've made a add-on for Firefox using it's add-on builder SDK. At first it works just fine, but then when I switch tabs it starts acting weird and loose its functionality. I know I must be missing something and it's probably related to the communication between scripts, but I don't know what.
Instead of posting the code I made the extension public and here is the link .
If you still need me to post the codes , witch you shouldn't, just ask me to and I'll do it. Tell me what am I supposed to do to make my extension work on many tabs separately, but simultaneously.