Closed
Bug 784929
Opened 12 years ago
Closed 12 years ago
Leak in url.js (with add-on Copy Tiny Url 1.0)
Categories
(Add-on SDK Graveyard :: General, defect)
Add-on SDK Graveyard
General
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: thomas, Unassigned)
References
()
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Firefox/17.0 Build ID: 20120822030558 Steps to reproduce: Firefox 14.0.1 Lubuntu 12.04 Firefox Nightly 17.0a1 (2012-08-22) Lubuntu 12.04 If you install the Copy Tiny Url add-on in version 1.0 (see attachment), there are many compartments System Principal even after disabling the add-on.( More compartments in Nightly than release version) Steps to reproduce: 1. Create a new profile. 2. Install the add-on. 3. Open the add-on manager, disable the add-on. 4. Open about:memory?verbose and close all other tabs. 5. Click 'Minimize memory usage'. Actual results: Open 'about:compartments'. Still many compartments like this: compartment([System Principal], resource://jid1-epxk6cb8p5cx9w-at-jetpack/api-utils/lib/url.js) Add-on SDK version is 1.9 compartments in Firefox 14.0.1 Main Process User Compartments http://localhost/extensions-dummy/discoveryURL System Compartments [System Principal] [System Principal], jar:file:///tmp/tmp7bPyrA.mozrunner/extensions/jid1-EpxK6cb8p5Cx9w@jetpack.xpi!/bootstrap.js [System Principal], resource://jid1-epxk6cb8p5cx9w-at-jetpack/api-utils/lib/url.js atoms moz-nullprincipal:{b6df2f6f-542a-4633-ad07-834b8c8a047a} Ghost Windows Expected results: No jetpack compartments
Whiteboard: [triage:followup]
Updated•12 years ago
|
Comment 2•12 years ago
|
||
This appears to be an issue with your add-on, you use the `window-utils` module to track/untrack windows, and the onTrack method is adding a 'DOMContentLoaded' event listener to all documents, but the onUntrack method only cleans documents with getAttribute("windowtype") == "navigator:browser". SO I'm pretty certain that is the cause of the leak.
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
Updated•12 years ago
|
Whiteboard: [triage:followup]
You need to log in
before you can comment on or make changes to this bug.
Description
•