WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
187510
[FileAPI] FileReader.readAsArrayBuffer(null) should throw a Type Error
https://bugs.webkit.org/show_bug.cgi?id=187510
Summary
[FileAPI] FileReader.readAsArrayBuffer(null) should throw a Type Error
zac spitzer
Reported
2018-07-10 00:35:26 PDT
Webkit currently just returns, all other major browsers do a type check and throw an error var reader = new FileReader(); reader.onloadend = function(e) { console.log(e); } reader.readAsArrayBuffer(null);
https://jsbin.com/zonagopuhi/edit?html,js,console,output
https://trac.webkit.org/browser/webkit/trunk/Source/WebCore/fileapi/FileReader.cpp#L79
Here is the Chrome commit which added type checking for FileReader
https://groups.google.com/a/chromium.org/forum/#!topic/blink-reviews/vZxyVFHJ7MU
Attachments
Add attachment
proposed patch, testcase, etc.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug