It seems like a bug to me too. Other frameworks/libs will have the same problem with packaged apps.
Curly braces are not referenced on this page too https://wiki.mozilla.org/Apps/Security I will file a bug. Thanks Le lundi 25 février 2013 15:32:00 UTC+1, Julien Wajsberg a écrit : > Le 25/02/2013 02:09, [email protected] a écrit : > > > Hi, > > > > > > While debugging an angularjs packaged app in r2d2b2g I noticed that > > window.location.href was > > "app://{550e8400-e29b-41d4-a716-446655440000}/index.html", which doesn't > > match the angularjs url regex > > (https://github.com/angular/angular.js/blob/v1.1.3/src/ng/location.js#L3). > > > > > > I was about to open a pull request on angularjs but noticed that the > > documentation at > > https://developer.mozilla.org/en-US/docs/Apps/Packaged_apps says that a > > packaged app url should look like > > "app://550e8400-e29b-41d4-a716-446655440000/index.html", which is more > > compliant with the RFC3986 http://tools.ietf.org/html/rfc3986#page-21 > > > > > > What should be the correct url of a packaged app ? > > > > > > If I read correctly the URI RFC [1], it seems that using the curly > > braces is not allowed. So this may be a bug, but I'll let others confirm. > > > > > > [1] http://www.ietf.org/rfc/rfc3986.txt _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
