How can I fix my Chrome HTML5 canvas?

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?

2

1 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.

3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like