best,
lloyd
You mean like adding an API to run chrome privileged code from the web
page? I think is not possible due to security restrictions. If you're
thinking on another thing, please explain yourself a little longer
because I didn't get it very well :)
Hernán
Hi Hern�n,
Sorry for being so terse! Certainly not chrome priviledged code, but
yes, some secure abstraction or pattern to let unpriviledged code call
into jetpacks. Perhaps it's built on top of message passing? The
high level feature I'm curious about here would be to be able to
implement emergent standards or new ideas for page accesible
javascript APIs in jetpacks.
lloyd
> Hern�n
>
> --
> You received this message because you are subscribed to the Google Groups "mozilla-labs-jetpack" group.
> To post to this group, send email to mozilla-la...@googlegroups.com.
> To unsubscribe from this group, send email to mozilla-labs-jet...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mozilla-labs-jetpack?hl=en.
>
Absolutely, the page mods API should make this possible.
--BDS
I think message-passing is on the pipeline but still not yet
completely implemented. The thing here is the Electrolysis project,
that will move the page content and jetpack code into different
threads, so the implementation wasn't so trivial.
Anyway, hopefully someone with more knowledge in the subject than I
will comment here.
Hernán
I see, use case 4:
https://wiki.mozilla.org/Labs/Jetpack/Reboot/JEP/107#Use_Cases
I understand now how one would actually implement the top half, the
page visibile API, but not the plumbing which allows the javascript
executing in the page context to communicate with the chrome
privileged jetpack. I expect JSON message passing would be a future
proof (electrolysis) underlying transport... Is there any more
thought on how this would work?
lloyd
> --BDS
The addons-builder-helper adds an object called window.mozFlightDeck to
pages on certain trusted domains:
http://github.com/toolness/addons-builder-helper
It's not necessarily ideal, though. Chrome Object Wrappers, or COWs,
were made to make this really easy:
https://wiki.mozilla.org/XPConnect_Chrome_Object_Wrappers
I think the addons-builder-helper was originally written to run on
versions of Firefox that didn't have COWs, but any new implementations
could probably use them and require much less code.
- Atul