In my addon I am trying to send namespace using sendMessage method. I am passing the complete namespace which includes methods.
I have noticed, I can recieve any Object which is in the namespace, but there are no methods, which were defined during load of background.js.
The background script is loaded, the namespace was created, all functions were defined and are part of the namespace. Later when I click on addon’s button, I open new page, where I send a message to get namespace. In the response which is processed by callback function I found the namespace, but this is missing any functions which are part of the namespace.
I wonder if this is another bug in Debugger or this was a intent of the developers? These bugs are quite depressing.