josephdecock/nmr — Issue #1: Chrome raises security error when reading data file
Author: kkalstabakken
Created: 2011-11-01 05:18:32+00:00
State: open

readAsArrayBuffer() raises a security error (error code: 2, SECURITY_ERR) in Chrome.
The documentation for this is pretty vague: (from the W3C draft)

If:
- it is determined that certain files are unsafe for access within
a Web application.
- it is determined that too many read calls are being made on File
or Blob resources.
- it is determined that the file has changed on disk since the user
selected it.
then for asynchronous read methods the error attribute MAY return a "SecurityError" DOMError and synchronous read methods MAY throw a SecurityError exception.

This is a security error code to be used in situations not covered by any other exception type.