I think I was using the wrong words to say the same thing. Here is the flow:
1. App calls window.open with http://michaelpro.local/~mbishop/index.html 2. michaelpro.local responds with HTTP/1.1 302 Found Date: Tue, 02 Jul 2013 21:16:37 GMT Server: Apache/2.2.22 (Unix) DAV/2 mod_ssl/2.2.22 OpenSSL/0.9.8x Location: app://firefoxos.non-existent-domain-asdfg.com/authenticated.html Content-Type: text/html; charset=iso-8859-1 3. The app has the manifest entry: "origin": "app://firefoxos.non-existent-domain-asdfg.com", "name": "Test Redirection", "version": "0.0.1", "description": "Test Redirection inside Firefox OS", "locales": { "en_US": { "name": "Test Redirection" } }, "type": "privileged", "permissions": { "systemXHR": {} }, "redirects": [ {"from": "app://firefoxos.non-existent-domain-asdfg.com/authenticated.html", "to": "/redirects/authenticated.html"} ] 4. At this point, I'd expect app:///redirects/authenticated.html to be loaded. Is this the right flow/setup? _ michael On Tuesday, July 2, 2013 at 17:20 PM, Fabrice Desre wrote: > On 07/02/2013 12:27 PM, Michael Bishop wrote: > > Maybe I'm thinking about this wrong. > > > > I'd thought that in the "redirects" manifest entry, the "from" > > references the web-page that has been requested to be opened and that it > > doesn't need to actually exist because within the app instance, it is > > now aliased to the "to" entry. > > > > So, when the app loads http://MichaelPro.local/~mbishop/index.html, and > > the server at MichaelPro.local asks it to redirect to the "from" entry, > > I've been expecting the app to open the "to" entry. > > > > Is that not the case then? Is there some sample code that shows how this > > works? > > > > > No, this is not the case. It's actually a redirect override: when you > get redirected to the "from" page, we instead redirect to the "to" > resource in the package. > > Fabrice > -- > Fabrice Desré > b2g team > Mozilla Corporation > > _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
