Re: How to get the primaryshell/widget from nsIDocument* with Gecko SDK 2.0

mads <[email protected]> Mon, 14 Feb 2011 06:23:22 -0800 (PST)
Newsgroups gmane.comp.mozilla.devel.dom
Organization http://groups.google.com
Message-ID <[email protected]>
On Feb 14, 7:14 pm, Boris Zbarsky <[email protected]> wrote:
> On 2/14/11 9:04 AM, Madhu Tadiparthi wrote:
>
> > Now I am trying
> > to make it work for Gecko SDK 2.0 and I have seen that getPrimaryShell() is
> > no more supported in the SDK 2.0 and I used getShell() instead but it is
> > returning NULL pointer.
>
> That means the document has no presshell at the point when you make the
> call.  This is a perfectly normal condition for a document to be in.
>
> -Boris

Thanks Boris for the immediate response. Could you tell me any way to
get the valid widget of that document in this scenario?
-Madhu Tadiparthi