On Mar 24, 6:09 pm, Boris Zbarsky <bzbar...@mit.edu> wrote:
>
> So htmlDoc is non-null, right?  When you say "dies" I assume you crash?
>

Yes, htmlDoc is not null (see the "if" statement on line 40).  Yes, I
do indeed mean crash.

>   What's the value of |doc| at this point?  Is it pointing to a valid
> nsDocument object?  Or do you not have a debug Gecko (or at least one
> with symbols) to work with here?

In the debugger, the mRawPtr for doc is not garbage: I'm not entirely
sure how to poke around more.  I'm using xulrunner-1.9-dev on Ubuntu
8.10.

When we drop the code that we *actually* want to run into the
DocumentLoaded callback, nothing crashes, but GetElementsByTagName
always returns a node list with 0 elements (see
http://groups.google.com/group/mozilla.dev.embedding/browse_thread/thread/b9246695da9a2f94/655796336aeaf6c9?lnk=raot#655796336aeaf6c9).
_______________________________________________
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to