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)

x86
macOS
defect

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: nobody → zer0
Depends on: 803027
Can you see when this broke?
Priority: -- → P1
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.
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.