Closed Bug 862337 Opened 11 years ago Closed 7 years ago

SDK 1.14 leaks console/plain-text.js

Categories

(Add-on SDK Graveyard :: General, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: TheOne, Unassigned)

References

Details

(Whiteboard: [MemShrink:P3])

The SDK 1.14 leaks, get a bucket!

STR:
1. Install https://addons.mozilla.org/firefox/downloads/file/202844/youtube_html5_switch-v0.1.6-fx.xpi
2. Disable it
3. Go to about:compartments

The previous version of the add-on https://addons.mozilla.org/firefox/downloads/file/196208/youtube_html5_switch-v0.1.3.9-fx.xpi?src=editor uses SDK 1.13.2, has no code changes outside the SDK folders and does not leak.

Tested in Aurora and Nightly on Windows.
I don't know exactly what's going on there, but I can see various dead wrappers being hold by the plain text console module: curry, self, traceback, prefs and merge

It basically means that plain text isn't nuked for some reason, whereas its dependencies are. And we are also keeping a reference to plain text object...
(sandboxes nuke is just a safety, we shouldn't be keeping any references in first place)
Whiteboard: [MemShrink]
How much does this actually leak? Is this per-addon?
Priority: -- → P2
I haven't investigated much. I'd say it happen for all addons, but it would be worth to give it a try with an empty addon.
And the leak isn't huge, it seems to leak console module and its sandbox.
Whiteboard: [MemShrink] → [MemShrink:P3]
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.