Google-chrome – How to fix the Chrome HTML5 canvas

canvasgoogle-chromehtml5

I've noticed that my Chrome canvas doesn't work properly. For example, if I try to update this W3 school canvas sample (even without changing anything), it no longer renders properly (the red ball just disappears). This works fine in Firefox.

I've tried both the current version of Chrome (15.0.874.106m), as well as the beta version (16), and the same thing happens. It's not just this page, that I'm experiencing it on, but that's the easiest example to point to.

I'm using the 11.10 Catalyst drivers for my Crossfired HD5850's, if that matters.

What might be causing this problem, and how might I fix it?

Best Answer

Chrome's browser console shows the following error:

Refused to execute a JavaScript script. Source code of script found within request.

The reason it isn't working is because Chrome thinks it's a XSS (cross-site-scripting) attack.

Related Question