appleofmyiframe
appleofmyiframe copied to clipboard
Idea: Prevent unexpected infinite loops by limiting number of 'load' events within time range
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.