Kwah's suggestion to set "dom.max_chrome_script_run_time" was a big
help. (The Firefox 5 default is now 0, or infinite. It used to be
around 20 seconds in earlier versions of Firefox, and I didn't
realize it was now ineffective.)
So the script times out at:
Script:
jar:file:///C:/Users/nagle/AppData/Roaming/Mozilla/Firefox/Profiles/tp7aopb6.default/extensions/%7Be4a8a97b-f2ed-450b-b12d-ee082ba24781%7D.xpi!/components/greasemonkey.js:506
Looking at the Greasemonkey source (from the XPI file, so the
line numbers are right) that's in
"service.prototype.injectScripts" at the code:
if (!script.unwrap) {
scriptSrc = "(function(){"+ scriptSrc +"})()";
}
That's not too helpful.
Trying again,
Script:
jar:file:///C:/Users/nagle/AppData/Roaming/Mozilla/Firefox/Profiles/tp7aopb6.default/extensions/%7Be4a8a97b-f2ed-450b-b12d-ee082ba24781%7D.xpi!/components/greasemonkey.js:511
which is the last line of the FOR loop in
"service.prototype.injectScripts".
Trying again, got line 511 again. None of this is in my code;
it's all deep inside Greasemonkey.
So it looks like either Greasemonkey's injectScripts is in a loop, or
it's being called over and over. That's weird, because injectScripts
seems to be part of the script installation process, not something
called during script execution.
This problem only occurs when my script runs on Google News pages.
They do lots of Javascript, and something they may be doing may
be interfering with Greasemonkey.
My own code is logging messages to the Javascript console, and
its normal messages appear. When Greasemonkey is hung, it's not
logging anything. So I don't think my code is being executed at
the point of the hang.
I've tried running with Firebug enabled. When the timeout occurs,
I click on "Debug Script". Then Firefox hangs, Firebug doesn't work,
and I have to kill Firefox.
Very frustrating.
John Nagle
--
You received this message because you are subscribed to the Google Groups
"greasemonkey-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/greasemonkey-users?hl=en.