Le 23/08/2013 14:40, Gmail a écrit :
> Hi,
>
>> these calls should not be the problem.
>>
>> If you have calls like "setTimeout('setLastScroll()', 100)" then it
>> could be the problem, but using real functions is not forbidden, we do
>> that all the time in Firefox OS.
> and yet my app was rejected:
>
> ------------------
> Reviewed by Andrew Williamson (15 hours, 40 minutes ago)
>
>     Hi, thanks for your submission. We found some issues which need 
> addressing: 1) Your app includes code which will be blocked from 
> executed by the CSP applied to privileged apps. The CSP prevents all 
> inline Javascript such as eval; new Function(); setTimeout and 
> setInterval (with String parameters); 

"with String parameters"

> inline event handlers; new 
> <script> elements. It also prevents external scripts from being added 
> or used. 
> https://developer.mozilla.org/en-US/docs/Web/Apps/Packaged_apps#Types_of_packaged_apps
>  
> Once you've made the change please resubmit your app so we can take 
> another look.
> ------------------
>
> I know that jQuery also does document.createElement("script") and such.
>
> And what about stuff like this?
>
> var myvar = "setLastScroll()";
> setTimeout(myvar, 100);

Yes, this is forbidden. This is a String parameter to setTimeout :).

>
> I'm not sure what I can do to get the jQuery code accepted, I tried to 
> remove those calls but then jQuery wasn't functional anymore.
>

Sorry, I don't know how to make jQuery UI work in this situation.



Attachment: signature.asc
Description: OpenPGP digital signature

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

Reply via email to