Open Bug 988815 Opened 8 years ago Updated 3 years ago
Memory mapping array buffer for blobs coming from Indexed
Follow up from bug 945152 comment 27.
This patch enhances FileReader API to support memory-mapped array buffer when calling .readAsArrayBuffer() from blob, and the blob is a file. One thing to note: The FileReader API is asyncronous, but it sends progress event is syncronously. When the load event is sent quickly, the onload() event will be triggered before the readAsArrayBuffer() finished. Because memory mapping triggers load event quickly, it caused below error in the mochitest: Got exception: TypeError: already executing generator The test case in the patch uses a workaround to avoid such problem.
Assignee: nobody → swu
I am not actively working on this, unassign myself.
Assignee: swu → nobody
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.