Need to add more test cases for Blob.slice, including empty file and big file.
Created attachment 50554 [details] Proposed Patch
Comment on attachment 50554 [details] Proposed Patch r=me with a nit: > diff --git a/LayoutTests/http/tests/local/resources/send-sliced-dragged-file.js b/LayoutTests/http/tests/local/resources/send-sliced-dragged-file.js > function runTest() > + > + debug("Test slicing and sending a small file."); > + dragAndSliceStableFile("resources/file-for-drag-to-send.txt", 10, 2, 4); > + dragAndSliceStableFile("resources/file-for-drag-to-send.txt", 10, 2, 20); > + dragAndSliceStableFile("resources/file-for-drag-to-send.txt", 10, 15, 20); > + > + debug("Test slicing and sending a big file."); > + dragAndSliceStableFile("resources/abe.png", 12242, 10, 40); > + dragAndSliceStableFile("resources/abe.png", 12242, 10, 3000); > + dragAndSliceStableFile("resources/abe.png", 12242, 3000, 15000); It would be nice to add info on why this file size is enough... Also, enough for what? I think you are trying to hit the codepath where some buffer is getting full, it's good to mention it.
Committed as http://trac.webkit.org/changeset/55873.