FileWriter fails with assertion when trying to write empty Blob Renderer crashed with message: > ASSERTION FAILED: bytes + m_bytesWritten > 0 > third_party/WebKit/Source/WebCore/fileapi/FileWriter.cpp(182) : virtual void WebCore::FileWriter::didWrite(long long int, bool)
Created attachment 157660 [details] Patch
Made a quick fix. EricU: can you take the first look? Thanks!
Adding some more reviewers. Can someone take a look at this tiny change? Thanks!
Comment on attachment 157660 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=157660&action=review > LayoutTests/fast/filesystem/file-writer-empty-blob.html:4 > +<html> > + <head> > + <title>File Writer with empty Blob</title> Inconsistent indentation > LayoutTests/fast/filesystem/resources/file-writer-empty-blob.js:28 > +setupAndRunTest(2*1024*1024, 'file-writer-empty-blob', runTest); Need spaces before and after '*' > LayoutTests/fast/filesystem/workers/file-writer-empty-blob.html:4 > +<html> > + <head> > + <title>File Writer with empty Blob in Worker</title> inconsistent indentation
Thanks kent-san! Will fix before submitting.
Committed r125643: <http://trac.webkit.org/changeset/125643>