Created attachment 364175 [details] testcase I get a memory leak when right clicking on the button, and then closing the browser. See result of the leak log: Results of processing log leak1.log : Leaked content nodes associated with node info manager at address 2c78ca0. ... with document URI "file:///C:/Documents%20and%20Settings/mw/Bureaublad/rightclickbutton.htm". Summary: Leaked 0 out of 0 DOM Windows Leaked 0 out of 31 documents Leaked 0 out of 5 docshells Leaked content nodes in 1 out of 39 documents
The nsXULPopupManager holds a node in mRangeParent (and a document in mKeyListener?), but it's held alive by nsLayoutStatics. nsLayoutStatics stays alive as long as there are nodes or documents alive. Something should break the cycle.
This should have been fixed by bug 664430.