On 6/6/14, 12:42 PM, Matthew Gertner wrote:
On Friday, June 6, 2014 6:33:27 PM UTC+2, Boris Zbarsky wrote:
The about:blank document is quite real, sadly...

 From what I'm seeing, the document object that ends up there (window.document) 
is not the same one as when DOMWindowCreated is fired.

Right, but that's not guaranteed.

but I'm afraid of memory leaks since the event handler is a closure with 
references back to the window.

That shouldn't be an issue. The cycle collector should handle it. Just make sure you don't have a reference to that event handler on any long-lived chrome objects.

-Boris
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to