[Greasemonkey] Bug in GM_xmlhttpRequest?

Mark Pilgrim pilgrim at gmail.com
Wed May 4 18:26:38 EDT 2005


On 5/4/05, Aaron Boodman <zboogs at gmail.com> wrote:
> Yeah, there is probably a bug in initialization of Greasemonkey.

There was some speculation off-list about whether it is related to the
fact that diveintogreasemonkey.org is password-protected.  It is not,
because I can reproduce the bug on my locally-hosted
(http://localhost/) copy of the book, which is not password-protected.
 But it is definitely related to something about Dive Into
Greasemonkey, because I can not reproduce the bug on any other site.

I have narrowed it down to this line:

<meta http-equiv="Link" content='&lt;css/modern.css&gt;;
type="text/css"; rel=stylesheet, &lt;css/empty.css&gt;;
type="text/css"; rel=stylesheet'>

If that line is present in the <head>, the user script is executed twice.
If I remove that line, the user script is executed once.

(For those wondering, it's a CSS hack that hides css/modern.css from
Safari and IE.)

I'm not sure if this is a Greasemonkey bug or a Firefox bug, but I
would say it's definitely a bug.

-- 
Cheers,
-Mark


More information about the Greasemonkey mailing list