Looking at |manifest.webapp - http://pastebin.com/G6NjQxhT| you are trying to do a certified application.

Certified and privileged application are sujects to the Content Security Policy by default. See https://developer.mozilla.org/en/docs/Security/CSP. As a result you can not run inline JavaScript but you should run it by adding a <script src="my_script.js"> tag inside your page.

Hope it helps,
Vivien.

On 21/12/2013 16:37, Hugh Tay wrote:
Dear reader,


If you're reading this, it means you will now know that I have trouble running 
Javascript in my FireFox OS app.

I'm trying to build my app together with the FireFox OS emulator (compiling 
from source) and I can get the app to display custom CSS correctly (e.g. 
Bootstrap) but for some reason I can't get it to run any Javascript; not even 
inline...

My pastebins:

index.html - http://pastebin.com/6Z2CSPdw
manifest.webapp - http://pastebin.com/G6NjQxhT


Is there some sort of setting where I'm supposed to enable Javascript, or what 
silly mistake did I make with the build process?

I don't know what to do, some guru please save me!

Much appreciated for reading this, and many thanks in advance for your kind 
help.


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

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

Reply via email to