Bug 21392 - FileReader does not specify behavior on invalid input
FileReader does not specify behavior on invalid input
Status: RESOLVED INVALID
Product: WebAppsWG
Classification: Unclassified
Component: File API
unspecified
All All
: P2 trivial
: ---
Assigned To: Arun
public-webapps-bugzilla
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-03-25 23:18 UTC by David Leston
Modified: 2013-03-26 00:04 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Leston 2013-03-25 23:18:56 UTC
No behavior is specified for when a "readAs" method on FileReader is called with invalid input. In Chromium 26.0.1410.40, no exception is thrown and the onerror callback is not invoked.

Chromium discussion thread:
https://groups.google.com/a/chromium.org/d/topic/chromium-discuss/wEMo0jnlM-w/discussion

Chromium behavior discussed on StackOverflow:
http://stackoverflow.com/questions/6999928/html5-filereader-functions-not-getting-called
Comment 1 Glenn Maynard 2013-03-25 23:50:46 UTC
This is defined to throw TypeError.  http://dev.w3.org/2006/webapi/WebIDL/#es-interface