I want to trigger JavaScript garbage collection. Is it possible? Why would I want to, or not want to, do this?
This answer suggests the following garbage collection request code for Gecko based browsers:
window.QueryInterface(Components.interfaces.nsIInterfaceRequestor) .getInterface(Components.interfaces.nsIDOMWindowUtils) .garbageCollect();