Created attachment 696513 [details]
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0
Build ID: 20121128204232
Steps to reproduce:
Create a widget with a script attached which post a message on event 'click'.
After widget creation, change contentURL by assigning widget property.
messages emitted from the content script are no longer received in the main script.
Changing the contentURL property of the widget should not have impact on communication and main script should continue to receive messages posted in the content script.
the two files attached could be used to create a simple add-on showing the problem.
At add-on installation, right or left clicking on the widget icon will result in a message in the console.
After 6 seconds, the contentURL property of the widget is changed (using setTimeout). After this change, clicking on the widget icon does not show a message in the console.
*** This bug has been marked as a duplicate of bug 748677 ***