joewalker/devtools-window — pull request #299 by mihaisucan (2012-11-21 19:59:24+00:00)
Title: cleanup in browser_toolbox_sidebar.js

The `browser_toolbox_sidebar.js` test adds a new fake tool and some sidebars for the panel. This tool is never removed and I can see it much later in a run - like when the web console tests run.

This patch does some cleanup in the test. Also note the `Cu.imports()` do not do what they are intended - IIANM `this` is the global scope.

I couldn't find a way to prove myself if these changes fix an actual memory leak or not.