I believe this is due to the CSP[1] applied to packaged apps. Inline
scripts aren't allowed. See that page for more info.

[1]: https://developer.mozilla.org/en-US/Apps/CSP

- Ryan

On Thu, Aug 28, 2014 at 10:29 AM, Nawfel BGH <[email protected]> wrote:
> Hello, This is a simplified code to reproduce a bug in firefox os simulator:
>
> https://gist.github.com/NawfelBengherbia/cb6330c72965a9b73851
>
> Served as a webpage in works fine, it produces the expected behavior 
> (appending 123 to the document every second). But as a firefox os packaged 
> app in the simulator, it doesn't work. When i debuged it i saw in the console:
>
> ReferenceError: XYZ is not defined
>
> I got this behavior in:
>
> * ffx os 2.1 simulator extension in Nightly 34
> * ffx os 2.1 simulator extension in Firefox 31
> * ffx os 2.1 standalone simulator (linux 64bits binary)
> * ffx os 1.3 simulator extension in Firefox 31
>
> My OS is Fedora 20 64bits
>
> To clarify again, if i serve these files as a normal webpage and access them 
> from the browser they work fine, but when loaded as a packaged app with 
> "index.html" as an entry point they yield the described behavior.
> _______________________________________________
> 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