mozilla.dev.embedding
[Top] [All Lists]
Try out TrashMail.net disposable email address service

Re: setting up javascript document

Subject: Re: setting up javascript document
From: "Richard"
Date: Thu, 20 Apr 2006 11:17:49 -0600
Newsgroups: mozilla.dev.embedding
I think you're right, I might have found the code to properly init the 
javascript environment ( in nsIContent->NotifyContentObjectWrapper()), but I 
think I'm going to take your advice and look at the docshell class, 
basically we started out with a much simpler interface but it just kind of 
ballooned into including the whole mozilla document stucture, and now might 
be a good time to re-evaluate our choices.

Thanks for all your help, I really appreciate it.

--Richard


"Boris Zbarsky" <bzbarsky@xxxxxxx> wrote in message 
news:huidnSaeXN0XPtrZnZ2dnUVZ_s6dnZ2d@xxxxxxxxxxxxxx
> Richard wrote:
>> Where should this be called before or after the plugin is initiailized?
>
> Mmmm.... Probably before you set the script global object on the document. 
> At least that's where I think we call it, generally speaking.
>
> Again, I'm not sure why you're not just using the APIs docshell exposes 
> for this purpose (eg get the URI content listener from the docshell, call 
> DoContent on it, and then start pumping data into it, letting it handle 
> all the setup work properly).  Your approach is pretty much guaranteed to 
> break as the core code changes, possibly even on stable branches.
>
> -Boris 



<Prev in Thread] Current Thread [Next in Thread>