The default bug view has changed. See this FAQ.

loadFrameScript has no unload counterpart to allow bootstrapped addons to properly clean up

RESOLVED FIXED

Status

()

Core
IPC
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: Will, Assigned: smaug)

Tracking

({dev-doc-complete})

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

6 years ago
When a bootstrapped addon is shutdown, any global frame scripts it has previously loaded with the allow delayed load flag will remain and continue to execute for new tabs.

Every time the addon is started without restarting the application, frame scripts multiply.

Hopefully a solution similar to bug 481603 can be found.

Comment 1

6 years ago
Olli, it does strike me as strange that there's no way to stop a content script from being loaded in the future, but I'm surprised that this hasn't been an issue until now.
Status: UNCONFIRMED → NEW
Ever confirmed: true
(Assignee)

Updated

6 years ago
Assignee: nobody → Olli.Pettay
(Assignee)

Comment 2

6 years ago
Created attachment 555153 [details] [diff] [review]
patch
Attachment #555153 - Flags: review?(jst)

Updated

6 years ago
Attachment #555153 - Flags: review?(jst) → review+
(Assignee)

Comment 3

6 years ago
http://hg.mozilla.org/mozilla-central/rev/e0acef471ab2
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED

Updated

6 years ago
Keywords: dev-doc-needed
Is this on Aurora (Fx9)?
(Assignee)

Comment 5

6 years ago
Yes
Documentation updated:

https://developer.mozilla.org/en/XPCOM_Interface_Reference/nsIChromeFrameMessageManager
https://developer.mozilla.org/en/The_message_manager
https://developer.mozilla.org/en/Firefox/Updating_add-ons_for_Firefox_9#Bootstrapped_add-ons_can_remove_delayed-load_scripts

Also mentioned on Firefox 9 for developers.
Keywords: dev-doc-needed → dev-doc-complete
You need to log in before you can comment on or make changes to this bug.