Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

setting window.location = ... hangs

#195

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>

Reported by Kai Hackemesser · June 13th, 2012 @ 03:18 PM

State: new
Milestone: none
Assigned to: nobody

Activity

No comments yet.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.