Closed
Bug 801348
Opened 13 years ago
Closed 13 years ago
`selection` listeners are not removed when the add-on is disabled / uninstalled
Categories
(Add-on SDK Graveyard :: General, defect, P1)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: zer0, Assigned: zer0)
References
Details
The code above:
require("selection").on("select", function(){
console.log(this.text);
});
Is still running for the documents it was applied, even if the user disable / uninstall the add-on. Not sure if it's a regression, or it was always like that.
| Assignee | ||
Updated•13 years ago
|
Assignee: nobody → zer0
Can you see when this broke?
Priority: -- → P1
| Assignee | ||
Comment 2•13 years ago
|
||
I checked with SDK 1.10, and the issue is present there as well. As far as I can remember, we never explicitly remove the listeners when the add-on was disabled/uninstalled since I joined Mozilla. It means that probably we use tab-browser's tracker for that, but something probably changed in tracker or selection code that makes it not working anymore as expected. However because tab-tracker is deprecated, we didn't found / fix it earlier.
| Assignee | ||
Updated•13 years ago
|
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
•