mozilla/addon-sdk — pull request #391 by ochameau (2012-04-02 22:09:28+00:00)
Title: Bug 740689: Fix context-menu leak of tabs where we opened a context menu

I haven't overthink this patch, just removed the reference kept to popupNode that was leaking the last document in window where we opened a context menu.
There may be smarter way to address this issue?

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