Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix toBlob() and convertToBlob() #3393

Merged
merged 2 commits into from
Jan 25, 2018
Merged

Fix toBlob() and convertToBlob() #3393

merged 2 commits into from
Jan 25, 2018

Conversation

annevk
Copy link
Member

@annevk annevk commented Jan 24, 2018

In particular:

  • Neither method dealt properly with "serialization of a the bitmap as a file" returning null.
  • Neither method clearly indicated what had to happen synchronously (bitmap copy) and asynchronously (converting to a file).
  • toBlob() did not indicate the Realm of the new Blob object.
  • toBlob() invoked IDL's callback concept incorrectly.
  • convertToBlob() was weird with in parallel and queue a task.
  • convertToBlob() did not list a task source.

Fixes #3386.


/canvas.html ( diff )

In particular:

* Neither method dealt properly with "serialization of a the bitmap as a file" returning null.
* Neither method clearly indicated what had to happen synchronously (bitmap copy) and asynchronously (converting to a file).
* toBlob() did not indicate the Realm of the new Blob object.
* toBlob() invoked IDL's callback concept incorrectly.
* convertToBlob() was weird with in parallel and queue a task.
* convertToBlob() did not list a task source.

Fixes #3386.
@annevk annevk requested a review from junov January 24, 2018 10:44
@annevk annevk merged commit d28a66a into master Jan 25, 2018
@annevk annevk deleted the annevk/canvas-blobs branch January 25, 2018 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants