facebook/firefox-toolbar — Issue #39: Test Your Add-ons for Memory Leaks!
Author: brianking
Created: 2012-02-10 15:43:31+00:00
State: open

From the AMO team:

The MemShrink team was assembled some time ago to work on reducing Firefox’s memory footprint. Many memory bugs have been filed and fixed for Firefox, but add-ons are also a significant factor in how much memory is being used.

There is an ongoing effort to track and stomp memory leaks in add-ons (https://bugzilla.mozilla.org/show_bug.cgi?id=700547). Here’s where you can help, either by testing the add-ons you created, or testing the add-ons you use. Please read the article on Zombie Compartments (https://developer.mozilla.org/en/Zombie_Compartments), particularly the add-ons section. It should give you some pointers on how to find leaks and how to avoid them. The short version is don’t hold any references to DOM objects after the document is closed.

The AMO review team is already aware of this, and we have added memory leaks to our testing policies. Add-on versions that leaks may not get full review.