Hi Marco, I would like to see the source for sure, I am researching
right now building an xmpp jetpack feature, since it is easier to deal
with. Anything you can provide to support an xmpp extension would be
greatly appreciated.
Thanks
On Oct 17, 4:00 pm, Marco Pivetta <
ocram...@gmail.com> wrote:
> I made some workaround to allow communication between the window and the
> chrome scopes with a FireFox extension. This requires the extension to
> perform a
> *window.MyXMPPWrapper=getANewXMPPWrapperInstance();*
> every time the window.DOMContentLoaded event is fired... It's some kind of
> "GreaseMonkey emulation".
> Please be *VERY CAREFUL* with it. You are sharing chrome (privileged) scope
> with the window (unprivileged) scope. So remember that the user should NEVER
> be able to define variables or anything in the chrome scope. Every change
> should be kept local or you should put heavy validation on incoming
> parameters of your functions :)
> Tell me if you need more details, I could link you to the sources if you
> want to read them... I don't really remind where every related row is
> placed, but I'll search it for you if you haven't understood what I mean
> ^_^''
>
> 2009/10/16 Massimiliano Mirra <
hyperstr...@gmail.com>:
>
>
>
>
>
> > On Fri, Oct 16, 2009 at 11:21 PM, Backpack <
georgen...@gmail.com> wrote:
>
> >> Ok, I guess I'm gonna fork xmpp4moz, all I need is a basic interface
> >> similar to WebSockets but specific to xmpp and usable in javascript,
> >> like:
>
> >> Object xmppchannel:
>
> >> xmppchannel.open(account)
> >> xmppchannel.send(message)
> >> xmppchannel.close()
>
> >> Events:
>
> >> xmppchannel.onopen(event)
> >> xmppchannel.onmessage(event)
> >> xmppchannel.onerror(event)
> >> xmppchannel.onclose(event)
>
> >> So we do all the processing in javascript libraries, the extension
> >> will only be used to connect to the jabber server moving messages back
> >> and forth, nothing else.
>
> >> Of course I know nothing about extensions, so I'll ask you to be my
> >> mentor if you don't mind. I'll try to take as little time from you as
> >> possible, I know we're all busy in our own projects.
>
> > I'm afraid I can't, trust me if I had time to invest on it right now
> > I'd gladly spare you XPCOM & friends and serve you the solution on a
> > silver plate in a matter of days (nothing would make me happier than
> > seeing the original vision finally exploited).
>
> --
> Marco Pivetta - Ocramius Aethril
> Standard Ogame Project - StOgamehttp://
www.stogame.net