mozilla/addon-sdk — pull request #948 by ochameau (2013-04-16 20:53:06+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