The only thing I can think of is that the redirects key is only applied
when the server returns a 302 with that URI. That is, if  your app loads
a server side page that returns a 302 with the controlled URL, then it
should work. Otherwise, it doesn't.

So, in your example, it won't work (if you try to directly open the
controlled URL, it just opens it). Oh, and another thing, having inline
scripts on a privileged app should also not work,

Best,

Antonio

On 02/07/2013 15:48, Michael Bishop wrote:
I sure can.

   https://github.com/michaeljbishop/b2g-sample-apps/tree/master/redirects

It seems a simple enough api to write to, but this little sample app seems to fail when 
the "redirects" feature is exercised.

I'm curious if it only fails for me and if not, what I'm doing wrong to make it 
fail.

Thank you very much for your time,

_ michael



On Tuesday, July 2, 2013 at 6:06 AM, Julien Wajsberg wrote:

Le 01/07/2013 22:56, Michael Bishop a écrit :


Hello all,
I'm sure there is something really simple that I'm missing, but I can't see it. I've made 
the smallest web app I can make that simply tests the "redirects" mechanism.

It has one button that opens up a new window pointing directly to the landing page and 
one button that opens up the pseudo-domain specified by the "redirects" 
manifest entry.

As far as I can tell, they should do exactly the same thing. However, when I go through the 
"redirects" mechanism, I end up with a weird error message about "about://"

When I open the landing pad directly, I get this:


The sample app is 3k. I've included it here. Has anyone seen this before and is 
there a simple fix that I'm missing?

For the life of me, it looks like I'm doing the right thing…

Hey,

I think we missed your app :) could you please upload it on eg github ?

--
Julien



_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g


________________________________

Este mensaje se dirige exclusivamente a su destinatario. Puede consultar 
nuestra política de envío y recepción de correo electrónico en el enlace 
situado más abajo.
This message is intended exclusively for its addressee. We only send and 
receive email on the basis of the terms set out at:
http://www.tid.es/ES/PAGINAS/disclaimer.aspx
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to