Closed
Bug 642430
Opened 13 years ago
Closed 13 years ago
Pagemod destructor is incomplete
Categories
(Add-on SDK Graveyard :: General, defect)
Add-on SDK Graveyard
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: ochameau, Unassigned)
Details
Attachments
(1 file)
675 bytes,
patch
|
myk
:
review+
|
Details | Diff | Splinter Review |
When we call pagemod.destroy, we unregister the current pagemod from pagemodmanager register. It disable the pagemod but does not remove listener it has created! Here is the code that disable the page mod: _onContent: function _onContent(window) { if (!pageModManager.has(this)) return; // not registered yet A better comment would be "not registered *anymore*" But we register listeners there: _onRuleAdd: function _onRuleAdd(url) { pageModManager.on(url, this._onContent); Without removing them at pagemod destruction.
Attachment #519889 -
Flags: review?(myk)
Reporter | ||
Updated•13 years ago
|
Component: Documentation → General
QA Contact: documentation → general
Updated•13 years ago
|
Attachment #519889 -
Flags: review?(myk) → review+
Reporter | ||
Comment 1•13 years ago
|
||
landed: https://github.com/mozilla/addon-sdk/commit/43b0d6bd86f81fe8a39819912b23e7593b74f67f
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•