[Greasemonkey] OOPy GM script seems to crash Firefox

Aaron Boodman zboogs at gmail.com
Thu Jun 23 20:44:14 EDT 2005


Was it crashing immediately upon doing this, or a little later?

On 6/23/05, Dan Phiffer <dan at phiffer.org> wrote:
> 
> On Jun 23, 2005, at 3:15 PM, Dan Phiffer wrote:
> 
> > So I think I fixed that script. Instead of appending all the
> > accumulated DIV elements of loaded content to the document object
> > initially, I'm just holding them in an array and displaying them as
> > they're needed. I tried making a simple test case to demonstrate
> > the problem, but I couldn't craft one that would crash consistently.
> 
> Scratch that, here was the difference:
> 
> // This crashes
> var node = document.createElement('div');
> node.innerHTML = lots_of_content;
> othernode.appendChild(node);
> 
> // This doesn't crash
> var node = document.createElement('div');
> othernode.appendChild(node);
> node.innerHTML = lots_of_content;
> 
> Again, no test case, but worth trying if you run into mysterious
> crashing.
> 
> -Dan
> _______________________________________________
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
> http://mozdev.org/mailman/listinfo/greasemonkey
>


More information about the Greasemonkey mailing list