appleofmyiframe icon indicating copy to clipboard operation
appleofmyiframe copied to clipboard

Idea: Prevent unexpected infinite loops by limiting number of 'load' events within time range

Open premasagar opened this issue 16 years ago • 0 comments

In unknown browsers and situations, protect against infinite loops where the 'load' event triggers an event that causes a 'load' event. (This was previously seen at different points of development, in Opera and IE, but now resolved in those browsers).

Perhaps some kind of count++ should be there that doesn't allow endless reloads. If the widget breaks, that's one thing, but at least we shouldn't break the entire host page.

E.g. set a limit for the number of 'load' events allowed within a set range of time.

premasagar avatar Dec 21 '09 13:12 premasagar