[Greasemonkey] Bug in GM_xmlhttpRequest?

Aaron Boodman zboogs at gmail.com
Wed May 4 13:05:24 EDT 2005


It must come down to DOMContentLoaded being fired twice? 

On 5/4/05, Jeremy Dunck <jdunck at gmail.com> wrote:
> On 5/4/05, Aaron Boodman <zboogs at gmail.com> wrote:
> > It would be really really easy to add logic to only call onload once,
> > but I'd like to understand why it's happening first.
> 
> I wasn't talking about making any changes to only call onload once, I
> was just listing what I'd found so far.  Mark posed the question about
> injection on other page types, and I had data showing that wasn't the
> problem.
> 
> So here's an interesting finding.  The example script is being
> injected twice on http://diveintogreasemonkey.org/ .  I've further
> whittled it down to:
> 
> // ==UserScript==
> // @name          DIG double injection
> // @include       http://diveintogreasemonkey.org/
> // ==/UserScript==
> 
> GM_log('in DIG double injection script');
> 
> This prints the log twice.  Ouch.
> 
> I have no explanation of why this is happening yet.
> _______________________________________________
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
> http://mozdev.org/mailman/listinfo/greasemonkey
>


More information about the Greasemonkey mailing list