mozilla/addon-sdk — pull request #944 by ochameau (2013-04-15 23:54:05+00:00)
Title: Bug 812417: Listen for domwindowclosed instead of unload when closing a toplevel window.

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