Using Rhino 1.7R3 with env.rhino.1.2.js.
The problem: When the loaded web page contains a script having
an endless timer loop (setTimeout calling a method that itself sets
another timer), the following call is not returning:
context.evaluateString(scope, "window.location='" + url + "'",
"", 0, null);
As an example here's a script block of the file I tried to
load:
<script type="text/javascript">
var observer;
fail("bad luck");
function fail(message) {
if (typeof observer == 'undefined') {
console.info("fail - wait for observer");
setTimeout(function() {
fail(message);
}, 1000);
return;
}
observer.notify();
}
</script>