Hi,
this is my first post here.
I have a test-case where I make a panel connected to a toggleButton. In the panel there is a button which emits a signal to ask to addon to get the site url (from tabs module). The url is then communicated back with with an emit to the panel for display.
The problem is that when I switch the contentURL of the panel, the ‘set-url’ emit stops working. I know it doesn’t make sense to switch the contentURL here, but this is just a test-case. Maybe this is a bug in panel? Note that ‘get-url’ keeps firing when I push the button.
panel.port.on("get-url", function() {
console.log("get-url handler");
panel.contentURL = self.data.url("index.html");
panel.port.emit("set-url", getCurrentURL());
});