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?
Created attachment 637601 [details] [diff] [review] Bug 769119 - Treat null or undefined as an empty dictionary Yeah, I believe this patch will suffice for a temporary solution until moving to New bindings.
Could you add some tests for event ctors too. Put them to content/events/test/test_eventctors.html
Created attachment 637644 [details] [diff] [review] Bug 769119 - Treat null or undefined as an empty dictionary Added tests for event ctors.
Doc updated: https://developer.mozilla.org/en-US/docs/Web/API/Blob.Blob#Browser_compatibility and https://developer.mozilla.org/en-US/Firefox/Releases/16#API.2FDOM