Open Bug 988815 Opened 8 years ago Updated 3 years ago

Memory mapping array buffer for blobs coming from IndexedDB

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

People

(Reporter: swu, Unassigned)

References

(Depends on 1 open bug)

Details

Attachments

(1 file)

Follow up from bug 945152 comment 27.
Blocks: 945152
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
Depends on: 1034009
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.