Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Cross addon communication
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Erik Vold  
View profile  
 More options Jun 8 2012, 6:42 pm
From: Erik Vold <erikvv...@gmail.com>
Date: Fri, 8 Jun 2012 15:42:40 -0700
Local: Fri, Jun 8 2012 6:42 pm
Subject: Cross addon communication

I'd like a jetpack to be able to create an API that other addons can use to
communicate with it.

Here is a use case: https://github.com/msujaws/Cheevos/issues/10

So old school addons and jetpacks both will need to be able to communicate
with Cheevos in the above example.

I'm thinking that I could setup a user friendly resource uri and provide a
jsm that would send json so my jetpack (somehow) would suffice, but I'm
wondering if anyone has a better idea?

Thanks,

Erik

--
E <http://erikvold.com/>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Erik Vold  
View profile  
 More options Jun 8 2012, 6:51 pm
From: Erik Vold <erikvv...@gmail.com>
Date: Fri, 8 Jun 2012 15:51:19 -0700
Local: Fri, Jun 8 2012 6:51 pm
Subject: Re: Cross addon communication

Maybe an internal change would be best? adding a new method to
https://developer.mozilla.org/en/Addons/Add-on_Manager/Addon that only work
for jetpacks would be nice.

Erik

--
E <http://erikvold.com/>

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeff Griffiths  
View profile  
 More options Jun 8 2012, 9:27 pm
From: Jeff Griffiths <jgriffi...@mozilla.com>
Date: Fri, 08 Jun 2012 18:27:39 -0700
Local: Fri, Jun 8 2012 9:27 pm
Subject: Re: [jetpack] Re: Cross addon communication
How do you see the security model working here - it seems like the
initial add-on ( let's say it is cheevos ) would need to provide some
sort fo callback mechanism that the 'client' add-ons would pass messages to?

I understand the specific usefulness of cheevos exposing hooks, but can
you think of other, more general usage examples for this?

Jeff

On 12-06-08 3:51 PM, Erik Vold wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ZER0  
View profile  
 More options Jun 9 2012, 5:35 am
From: ZER0 <z...@mozilla.com>
Date: Sat, 09 Jun 2012 11:35:48 +0200
Local: Sat, Jun 9 2012 5:35 am
Subject: Re: [jetpack] Cross addon communication
On 06/09/12 24:42 AM, Erik Vold wrote:

> I'd like a jetpack to be able to create an API that other addons can use
> to communicate with it.
[..]
> I'm thinking that I could setup a user friendly resource uri and provide
> a jsm that would send json so my jetpack (somehow) would suffice, but
> I'm wondering if anyone has a better idea?

During last conference I was, I explained how a page can query Firefox
to discovered if an Add-on is installed or not, and use the
functionality the add-on provides. Is it something similar?

First of all, the add-on has to explicitly allows this; then the page
can send a `postMessage` to itself to "check" if the add-on is present
(like an handshake) and if it is, use it with `postMessage` APIs.

Currently to do that we have to involve page-mods and the communication
between webpage and add-on is not so straightforward (the `onmessage`
event handlers in the page and in the content script receive both the
messages, also the ones sent by themselves); but I like the fact that
the add-on have to explicitly allows a set of pages to use it, and that
the communication are over `postMessage` APIs, for security reasons.

Maybe we could improve that, and implement similar mechanism for cross
addon communications, to be consistent?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Erik Vold  
View profile  
 More options Jun 11 2012, 12:27 pm
From: Erik Vold <erikvv...@gmail.com>
Date: Mon, 11 Jun 2012 09:27:35 -0700
Local: Mon, Jun 11 2012 12:27 pm
Subject: Re: [jetpack] Cross addon communication

Yes, this does sound similar to what I'd like to have.

I certainly only want a postMessage/onMessage interface for security, and
asynchronous communication.  Also it should not use an existing channel,
and be opt-in.

I think I can write a prototype module that would slightly alter the addon
manager jsm, or merely wrap it, to add these postMessage/onMessage methods
to returned Addon instances.  Then there would be a module provided for
jetpacks which could be used to post/listen to these messages on the
jetpack's end of the line.

The latter part would be similar to your example I think ZER0.

Erik


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Erik Vold  
View profile  
 More options Jun 11 2012, 12:38 pm
From: Erik Vold <erikvv...@gmail.com>
Date: Mon, 11 Jun 2012 09:38:55 -0700
Local: Mon, Jun 11 2012 12:38 pm
Subject: Re: [jetpack] Re: Cross addon communication

I can't really think of how to refine the usefulness in to a
generalization, other than to say it would allow add-ons to easily
communicate, which they sometimes need to do for various odd reasons.
There doesn't appear to be a easily understood solution for this problem
when it arises too, and people are coming up with ad hoc solutions for it
at the moment.  I think the most common solution is to use the
observer-service<https://addons.mozilla.org/en-US/developers/docs/sdk/latest/packages/...>which
I don't think is a great solution for a few reasons, but mainly
because it's not easily understood.

Erik

On Fri, Jun 8, 2012 at 6:27 PM, Jeff Griffiths <jgriffi...@mozilla.com>wrote:

--
E <http://erikvold.com/>

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Irakli Gozalishvili  
View profile  
 More options Jun 13 2012, 3:33 pm
From: Irakli Gozalishvili <rfo...@gmail.com>
Date: Wed, 13 Jun 2012 12:33:04 -0700
Local: Wed, Jun 13 2012 3:33 pm
Subject: Re: [jetpack] Re: Cross addon communication

Erik I think it would be great if you could write up a JEP
https://github.com/mozilla/addon-sdk/wiki/JEP

With an examples showing how such API can be used. In terms of implementation I think https://developer.mozilla.org/en/nsiobserverservice is a way to go about it.

While I'd absolutely love to see such module in user space, I'm not sure it needs to be part of the core sdk. Starting as a user space module feels to me a best  start.

Regards
--
Irakli Gozalishvili
Web: http://www.jeditoolkit.com/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alexandre poirot  
View profile  
 More options Jun 13 2012, 5:21 pm
From: Alexandre poirot <poirot.a...@gmail.com>
Date: Wed, 13 Jun 2012 23:21:25 +0200
Local: Wed, Jun 13 2012 5:21 pm
Subject: Re: [jetpack] Re: Cross addon communication

It would be cool to take a look at was is being made in boot 2 gecko,
they are trying to use a web standard for that:
  https://wiki.mozilla.org/WebAPI/WebActivities
  http://en.wikipedia.org/wiki/Web_Intents

2012/6/13 Irakli Gozalishvili <rfo...@gmail.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Bucksch  
View profile  
 More options Jun 16 2012, 7:49 am
From: Ben Bucksch <ben.bucksch.n...@beonex.com>
Date: Sat, 16 Jun 2012 13:49:17 +0200
Local: Sat, Jun 16 2012 7:49 am
Subject: Re: [jetpack] Re: Cross addon communication
On 09.06.2012 03:27, Jeff Griffiths wrote:

> I understand the specific usefulness of cheevos exposing hooks, but
> can you think of other, more general usage examples for this?

Jetpacks addons are supposed to be small. Let's say Yahoo wants to offer
addons for their services: mail, storage, calendar, whatever. In Jetpack
philosophy, they should be separate addons that the user can install and
uninstall separately. But they all have a single login: Once you log in
to mail, you should also be logged in to calendar. Thus, the addons need
to share the login.

Ben


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »