Updating widget.contentURL breaks communication between content script and main

RESOLVED DUPLICATE of bug 748677

Status

Add-on SDK
General
P3
normal
RESOLVED DUPLICATE of bug 748677
4 years ago
4 years ago

People

(Reporter: Marc Chevrier, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

1.12 KB, application/octet-stream
Details
(Reporter)

Description

4 years ago
Created attachment 696513 [details]
bug-widget.zip

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.


Actual results:

messages emitted from the content script are no longer received in the main script.


Expected results:

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.
(Reporter)

Comment 1

4 years ago
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.

Updated

4 years ago
Priority: -- → P3

Updated

4 years ago
Blocks: 826406
Target Milestone: --- → 1.13
Target Milestone: 1.13 → ---
Status: UNCONFIRMED → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 748677
You need to log in before you can comment on or make changes to this bug.