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.
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.