-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Thanks! That worked.
For future reference, here's the line that you need to get this to work:
function ($compileProvider) {
$compileProvider.urlSanitizationWhitelist(/^\s*(https?|ftp|mailto|file):/);
}
Shuhao
On 08/16/2013 08:49 AM, [email protected] wrote:
> That is part of Angular's magic security help. You can find more
> details and code that fixes it @
> http://stackoverflow.com/a/15637622/24147 .
>
> And later, if your app might gets privileged, you will need another
> configuration to get CSP work:
> https://github.com/angular/angular.js/issues/2963#issuecomment-22304090
>
> @digitarald
>
> On Friday, August 16, 2013 12:54:05 AM UTC-7, Paul Theriault
> wrote:
>> At campjs last weekend a bunch of people were making Firefox OS
>> apps with Angular. They were testing in the simulator which runs
>> apps as packaged apps. Because of this, they were getting errors
>> related to the app: protocol, since angular relies on changing
>> the URL hash. E.g. links to #/tasklist/ get rewritten to
>> unsafe:app://ec1543da-f13a-41e3-875d-2e2bb6683ac9/index.html#/tasklist/
>>
>>
>>
>>
>>
Any ideas why gecko doesn't like this ? App is built on jar - does #
have a special meaning in jar URLs or something like that? Either way,
any suggestions to avoid this ?
>>
>>
>>
>> Thanks,
>>
>> Paul
> _______________________________________________ dev-b2g mailing
> list [email protected]
> https://lists.mozilla.org/listinfo/dev-b2g
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iQIcBAEBCgAGBQJSDpbLAAoJEM5AhTD1WsPQZ7wP/RrNGPJaW7DR0MPVOzZ5p2mu
dGpAO5IEdY8/gwjNL8/MSzw2MyuqUDuKk83GAab4GYVUhpuksWrftMibdMto3gTq
PxoXzdOvAbwtxSzFLvqeSjjflSuJKsoWxLh0iuy3wDalAe6VsGg/cPxWGU4oozVY
4ydU+ltFsalGiTEY3AaPmWnx+wjyFAbXkSk6mfdy7aWa9tnG3UtBwM53EwN7Rf1h
lq/ndDKYv507RazRF0lOyvbZcKII248k5NbP4KYhl9Rncatf878U4QuB6jrKpsQS
XDwaOPE+FDGKgzaKpChjDwalGvWN4May77ctYt4ZLQ3msRPRPVt16Xl2xSv3+ERb
293JA11kmBCyKvYxiQ32QDnxUB0tSacI3hxwglgRpcOT0dNTcMz2d8TwZ7zI+TQ1
0SY3NTrVE9B10mLFcOIoc/x9AZUjEDh7rzy0zkjd5lFBpvaO5EEE/EefERePGr+P
5zNINJghP9lO32kpa47aBAjk9rISSQ0evnu3Ygg7wiDYSZ6EvbKMfanjfi3TWq8G
fzLTUt6LxCfMd3nMzVC7ZimaVUVAO8Dj7vSAlZGijczJbjs/5WBTQhmCrzWvDpNU
b7SEuKi3xrVDwL43F8m+kYtoCfDiH32czztW2C9G1gZE5/sgayBJBVzgACNPePpG
q6iQkxrk8EOfUpYVfU0u
=N7A9
-----END PGP SIGNATURE-----
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g