SDK 1.14 leaks console/plain-text.js

RESOLVED WONTFIX

Status

P2
normal
RESOLVED WONTFIX
5 years ago
a year ago

People

(Reporter: TheOne, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [MemShrink:P3])

(Reporter)

Description

5 years ago
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)
Blocks: 700547
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]
(Reporter)

Updated

a year ago
Status: NEW → RESOLVED
Last Resolved: a year ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.