bug 771: Remember whether navigation was requested by user
Bug 771 is about onload scripts in web pages assigning window.location
at such a high rate that the user has no chance to ever interrupt the
loop. The current plan for fixing that is to make each such change
increment session.redirect_cnt and refuse to navigate further when
that grows too high.
ses_goto() is the only function that resets session.redirect_cnt = 0.
It does so if the parameter int redir is zero. Make all callers pass
this parameter as 1 if the navigation was requested by a web script.
15 files changed: