Infinite recursion fix

Share:

We were permitting customers to call cloudsponge.end() from within the beforeClosing or afterClosing callbacks. This made it possible to create an infinite recursion loop in the browser javascript. Now we guard against it by detecting if the widget is already cleaning up before cleaning up before cleaning up before cleaning up before cleaning up… ad infinitum.

Graeme Rouse, CTO at CloudSponge

Follow @thunderouse

Comments

Try CloudSponge for free in your
testing environment

Get Started

Have a questions or prefer a guided tour?
Schedule a consultation with our Founder.