Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 1334 by [email protected]: timer events after a gadget is unloaded
http://code.google.com/p/google-caja/issues/detail?id=1334
if a gadget uses setTimeout or setInterval, the timer handler will still
fire after the gadget has been 'unloaded'. this is a pitfall that doesn't
happen with iframed code. this can be demonstrated in the Playground, eg
with the clock demo.
to avoid this resource leak, either
* gadgets need to check if they're still alive in their timer handlers
* caja should cancel pending timers when a gadget is unloaded