[Project_owners] comunicating with the extension
asqueella at gmail.com
Mon Feb 5 13:36:42 PST 2007
Note that you lose the XPCNativeWrappers protection when using this
method (i.e. the page can pass an arbitrary JS object to your
observer), which is definitely not recommended thing to do. Especially
since with this method you can't tell what page the notification
originated from (which may be quite bad on its own).
Also I don't see the point - why would one need this instead of the
simpler and more safe solution relying on the DOM?
On 2/5/07, Alex Vincent <ajvincent at gmail.com> wrote:
> Alternatively, if your extension has a "messenger" global object, and you
> add an appropriate observer, you can skip the events model altogether:
> On 2/5/07, Nickolay Ponomarev <asqueella at gmail.com > wrote:
> > On 2/5/07, Masry Alex <masryalex at gmail.com > wrote:
> > > what's the best way to let the page( website, document) communicate with
> > > the extension and receive replies back without changing the URI?
> > Via DOM events.
> > Nickolay
> > _______________________________________________
> > Project_owners mailing list
> > Project_owners at mozdev.org
> > http://mozdev.org/mailman/listinfo/project_owners
> "The first step in confirming there is a bug in someone else's work is
> confirming there are no bugs in your own."
> -- Alexander J. Vincent, June 30, 2001
> Project_owners mailing list
> Project_owners at mozdev.org
More information about the Project_owners