8000
Skip to content

window.setTimeout is not working properly for long delays #1549

@mjh563

Description

@mjh563

I've been having a problem with window.setTimeout. It only seems to work for low timeout values (up to about 4 seconds). With a longer delay, the callback function is never run.

For example, try this script:

// ==UserScript==
// @name Timeout test
// @include *
// ==/UserScript==

window.setTimeout (function() {alert ("At timeout");}, 2000);

The alert fires as expected after 2 seconds. But when I change 2000 to 5000, the alert never happens.

Using Firefox 12 and GM 0.9.19.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0