Closed Bug 738966 Opened 12 years ago Closed 12 years ago

Blob Constructor does not work with ArrayBuffers in Web Console

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 737245

People

(Reporter: azakai, Unassigned)

References

Details

Attachments

(1 file)

The Blob constructor does not appear to work with ArrayBuffers:

  new Blob([new ArrayBuffer(10)])

  [10:37:43.420] [Exception... "An attempt was made to use an object that is not, or is no longer, usable"  code: "11" nsresult: "0x8053000b (InvalidStateError)"  location: "Web Console Line: 1"]

(MozBlobBuilder does work with ArrayBuffers.)
Blocks: 736687
Attached file Test case
Did you try it on Web Console? I can reproduce it on Web Console, but it works when I wrote the code in a html.
Yes, I tried first in the web console before rewriting my code to use it.
Sand box sucks...
Blocks: 721569
No longer blocks: 736687
Summary: Blob Constructor does not work with ArrayBuffers → Blob Constructor does not work with ArrayBuffers in Web Console
Sure. Blob constructor worked if I applied bug 737245.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: