mozilla/addon-sdk — pull request #555 by ochameau (2012-09-04 14:35:41+00:00)
Title: Bug 774709: Intermittent failure on test-widget.testConstructor TypeError: can't access dead object

Tentative fix against this intermittent widget test failure.
1/ We were leaving callback set when calling test.waitUntil around even after the related test was over.
2/ It looks like we tried to revert addon bar visiblity state of the wrong window, i.e. the one we tried to close right after. Instead of the initial window that is kept open.

https://bugzilla.mozilla.org/show_bug.cgi?id=774709