how do I fix firefox os CSP validation error?

Get help using Construct 2

Post » Fri Nov 22, 2013 4:03 am

So, I submitted my game to firefox marketplace, it gave me no error but there are 11 warnings, I was concerned so I checked the full report and all 11 reports are CSP violation errors from codes in c2runtime.js, which are these

[code]
c2runtime.js
83
84
85
... .He.height/2,f.drawImage(this.He,ja(a-c),ja(b-d)));1>=this.zg?(a=ja(a-c)+0.5,b=ja(b+(d+(m?12:0)))+0.5,f.fillStyle="DodgerBlue",f.fillRect(a,
... easureText(m):null,f.fillText(m,a-(c?c.width:0)/2,b))}this.xn=this.Ic}setTimeout(function(f){return function(){f.go()}}(this),100)}}};c.prot ...
Oa();var f,a,b;if(this.fj)for(f=0,a=this.u.length;f<a;f++)b=this.u[f],b.J||b.sk||!b.za.Qd||b.W();else this.ug=!1;f=0;for(a=this.Fc.length;f< ...
[/code]

[code]
c2runtime.js
88
89
90
... ull)));this.Ir();!this.ma&&!this.Tc||this.uk||this.Zg||(this.ma=!1,this.D?this.Hb():this.zc(),this.Ri&&(this.canvas&&this.canvas.toDataURL&&
... +);this.Bg+=Oa()-f;this.rg||(l?this.Hi=l(this.Yi,this.canvas):this.Zi=setTimeout(this.Yi,this.jf?1:16))}}};c.prototype.Ir=function(){var f,a ...
this.Iv&&(this.Gn=!1),this.Nd=1/60)),this.fi=f);this.Pc=this.Nd*this.If;this.Dc.add(this.Pc);f=document.mozFullScreen||document.webkitIsFull ...
[/code]

there are more but I think these two are enough to show the errors.

Now, I'm not ashamed to admit that I don't know sh*t about javascript, and these warnings just confuses me, even after I read the CSP documentiation (which is here: https://developer.mozilla.org/en-US/Apps/CSP )
and my game passed validation so I can go on and hope that it's approved. But the error page also said this: "While this does not affect your app, if you decide to add permissions to your app in the future, you will be unable to do so until this problem is corrected. It is highly recommended that you remedy this."

so I prefer to know how I can fix these. Any help is appreciated, thanks
B
45
S
13
G
2
Posts: 173
Reputation: 5,331

Post » Thu Feb 05, 2015 3:45 pm

I have just encountered the same issues. My game is a pretty simple version of pong so I'm not sure what is going on. It validated but gave me 10 Warnings. 9 of which were CSP violations.
I also get a:

JavaScript Compile-Time Error
Warning: A compile-time error in the JavaScript halted validation of that file.
Message: missing ; before statement
data.js

Anyone at all have any ideas as this came straight out of C2's open web export.?
Cheers
Dave
B
9
S
3
G
1
Posts: 23
Reputation: 828


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests