Re: FireFox 4 crashes when trying to find the parent document for an internal document using DOM API GetParentDocument()

mads <[email protected]> Tue, 3 May 2011 06:52:18 -0700 (PDT)
Newsgroups gmane.comp.mozilla.devel.dom
Organization http://groups.google.com
Message-ID <07a6bea5-f54d-4338-87a2-b518e8ebe4b7@q12g2000prb.googlegroups.com>
HI Olli,
Thanks for the quick response. Here are my comments.

> Have you debugged why the code is crashing?
> Is 'document' null when you call GetParentDocument()?
> If so, I assume also htmlDocument is null, unless you use
> the same binary for Fx3.6 and Fx4.0.

Madhu : I have taken care of NULL pointer checks. They are not NULL
pointers.

> (nsIDocument interface has changed in Fx4.0, so you can't use the
>   exactly *binary* code to access the object in Fx3.6 and Fx4.0.
>   You need to at least recompile the code.)

Madhu: I have extension to the browser, which has a dll compiled with
the  Gecko SDK 2.0 latest. Our code will try to traverse over the DOM
tree for the web application in FF4.0 to get the DOM hierarchy and
other stuff. Could you elaborate more on this recompiling the code?

Appreciate any inputs/comments.

Thanks
Madhu Tadiparthi