By the spec https://w3c.github.io/FileAPI/, FileReader.error should be DOMException now.
Created attachment 401714 [details] Patch
Created attachment 401719 [details] Patch
Created attachment 401726 [details] Patch fix test expectations for wk1
Comment on attachment 401726 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=401726&action=review r=me with changes. > Source/WebCore/fileapi/FileReader.cpp:226 > + RefPtr<DOMException> exception = DOMException::create(e.exception()); We don't need this local variable. This can be: m_error = DOMException::create(e.exception()); > Source/WebCore/fileapi/FileReader.h:73 > + RefPtr<DOMException> error() { return m_error; } This should return a DOMException*, not need to ref: DOMException* error() const { return m_error.get(); } > Source/WebCore/fileapi/FileReader.idl:55 > + readonly attribute DOMException error; This should be: readonly attribute DOMException? error; As per spec, since it can return null.
Created attachment 401731 [details] Patch Thank you, Chris. I addressed your review in this patch. (I don't have a committer grant so I need to request the review to you again)
Committed r262953: <https://trac.webkit.org/changeset/262953> All reviewed patches have been landed. Closing bug and clearing flags on attachment 401731 [details].
<rdar://problem/64299522>