joewalker/devtools-window — pull request #300 by mihaisucan (2012-11-21 21:25:07+00:00)
Title: gDevTools memleak fix and a Web Console test fix

Included:

* a simple fix in `gDevTools.forgetBrowserWindow()`: here `target.ownerDocument` was always undefined. I've seen this exception previously - this is because `target` is expected to a XUL tab.
* the above fixes a memory leak in devtools: we never cleanup toolboxes when we close a window - we only do it on browser quit.
* the above allows me to re-enable the two web console tests that got disabled due to memleaks - fixes for issue #270 and issue #271.
* I also checked how the merge went for the webconsole + style editor test and I notice the merge is wrong. It brings back an intermittent failure that I fixed in Mozilla Bug 812362. Included a fix.

t+ here.