Closed Bug 769119 Opened 9 years ago Closed 9 years ago

new Blob([], null/undefined); shouldn't throw

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla16

People

(Reporter: emk, Assigned: emk)

References

()

Details

(Keywords: dev-doc-complete)

Attachments

(1 file, 1 obsolete file)

The Web IDL spec has been updated so that null or empty is treated as an empty dictionary.
> null or empty is treated
Correction: null or undefined is treated
We just need to switch Blob to WebIDL bindings.  Then it would automatically pick up fixes like this...
But I guess in the meantime we can update the old dictionary code to work with undefined and null?
Yeah, I believe this patch will suffice for a temporary solution until moving to New bindings.
Assignee: nobody → VYV03354
Attachment #637601 - Flags: review?(jonas)
Could you add some tests for event ctors too.
Put them to content/events/test/test_eventctors.html
Added tests for event ctors.
Attachment #637601 - Attachment is obsolete: true
Attachment #637601 - Flags: review?(jonas)
Attachment #637644 - Flags: review?(jonas)
Keywords: checkin-needed
https://hg.mozilla.org/integration/mozilla-inbound/rev/82de1c252339
Status: NEW → ASSIGNED
Flags: in-testsuite+
Flags: in-moztrap-
Flags: in-litmus-
Target Milestone: --- → mozilla16
https://hg.mozilla.org/mozilla-central/rev/82de1c252339
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.