User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/17.0 Firefox/17.0
Build ID: 20120723030606
Steps to reproduce:
We need the support for activities working from multiple entry points.
In the documentation we had the
href: can be used to register an activity handler in another page. Needs to be same origin.
that maybe we could use to define this.
Or support in the entry point declaration the activity.

Created attachment 649909[details][diff][review]
patch
Francisco, can you try a build with this patch, and adding the "href" property in the activity. It works there, but I'd like to be sure this is what you actually need.

Hi Fabrice,
I tried the patch against the latest m-c, and this is the idea that we were proposing but currently is not working as expected.
I setup a email activity (I was working with them) in the following way:
"new": {
"filters": {
"type": "test"
},
"disposition": "window",
"href": "ep/mail.html"
}
My idea is trying to launch the file 'mail.html' inside the 'ep' folder (right now in apps i have: apps/mail/ep) to handle this activity.
I get a light-blue screen of death cause the system is trying to open the following page:
email.gaiamobile.com/index.html/ep/mail.html
So seems that we are always apending the launch_attribute from the original path and since we did a change that we added always the 'index.html' to the launch_path attribute, the 'href' seems to me that needs to be absolute path from the origin, not just the launch path.
Also tried the following trick, and everything worked as expected:
"new": {
"filters": {
"type": "test"
},
"disposition": "window",
"href": "/../ep/mail.html"
}
Cheers!
Francisco.

Forget anything about previous comment, somehow I was trying with an old copy of my b2g.
After realising that it was behaving as the old version, retried with the patched one and works like charm.
Following the example above:
"new": {
"filters": {
"type": "test"
},
"disposition": "window",
"href": "ep/mail.html"
}
It's opening correctly email.gaiamobile.org/ep/mail.html
Thanks a lot!
(In reply to francisco.jordano from comment #5)
> Hi Fabrice,
>
> I tried the patch against the latest m-c, and this is the idea that we were
> proposing but currently is not working as expected.
>
> I setup a email activity (I was working with them) in the following way:
>
> "new": {
> "filters": {
> "type": "test"
> },
> "disposition": "window",
> "href": "ep/mail.html"
> }
>
> My idea is trying to launch the file 'mail.html' inside the 'ep' folder
> (right now in apps i have: apps/mail/ep) to handle this activity.
>
> I get a light-blue screen of death cause the system is trying to open the
> following page:
>
> email.gaiamobile.com/index.html/ep/mail.html
>
> So seems that we are always apending the launch_attribute from the original
> path and since we did a change that we added always the 'index.html' to the
> launch_path attribute, the 'href' seems to me that needs to be absolute path
> from the origin, not just the launch path.
>
> Also tried the following trick, and everything worked as expected:
>
> "new": {
> "filters": {
> "type": "test"
> },
> "disposition": "window",
> "href": "/../ep/mail.html"
> }
>
> Cheers!
> Francisco.