I’m trying to develop an application that will use getImageData in javascript in Firefox 3, but I am getting a ‘NS_ERROR_DOM_SECURITY_ERR‘ on the getImageData call. The javascript and the image are both currently being served from by hard drive, which is apparently a security violation? When this is live they will both be served from the same domain, so it won’t be a problem, but how can I develop in the meantime?
I’m trying to develop an application that will use getImageData in javascript in Firefox
Share
You could try installing a local webserver such as Apache (on unix) or IIS (on Windows). That will ultimately give you the best local test bench for web-related stuff, because as you have found out browsers treat files from the filesystem quite differently than content served from a webserver.