Skip to content Skip to sidebar Skip to footer

Why Is My Add-on Panel´s Content Script No Longer Responding To Port Messages After Changing Contenturl?

I am building a Firefox add-on using the addon-sdk. The add-on has one button that displays a panel on click. The panel has a content script running it. Now, I need the panel to lo

Solution 1:

As far as I am able to tell the panel has no "ready" event of sorts that I can listen to for emitting the message.

I think it does, at least internally it seems to but I'm not sure whether they're exposed.

But even if it doesn't you can simply fire your own port message from the content script once it has been attached and registered its own listeners. Upon receiving that message in the addon you can then resume using the port on that side.

Post a Comment for "Why Is My Add-on Panel´s Content Script No Longer Responding To Port Messages After Changing Contenturl?"