Use BlobPart in the Blob/File webidl interface

RESOLVED FIXED in Firefox 49

Status

()

Core
DOM
RESOLVED FIXED
2 years ago
2 years ago

People

(Reporter: baku, Assigned: baku)

Tracking

unspecified
mozilla49
Points:
---

Firefox Tracking Flags

(firefox49 fixed)

Details

Attachments

(1 attachment)

(Assignee)

Description

2 years ago
Created attachment 8758357 [details] [diff] [review]
blob.patch
Attachment #8758357 - Flags: review?(bugs)
Comment on attachment 8758357 [details] [diff] [review]
blob.patch

So this is a change to the behavior (DOMString -> USVString)
Please test how other browsers work, if unusual string data is passed.
With that, r+.

https://github.com/w3c/FileAPI/issues/30 is a recent spec change.
Ms2ger, did anyone check what browsers actually do before the spec change was done.
Attachment #8758357 - Flags: review?(bugs)
Attachment #8758357 - Flags: review+
Attachment #8758357 - Flags: feedback?(Ms2ger)
BlobSet::AppendString uses NS_ConvertUTF16toUTF8, which already replaces unpaired surrogates by U+FFFD, so there's no behaviour change in using USVString here.

Updated

2 years ago
Attachment #8758357 - Flags: feedback?(Ms2ger)

Comment 3

2 years ago
Pushed by amarchesini@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/045cdefdb941
Use BlobPart in the Blob/File webidl interface, r=smaug

Comment 5

2 years ago
bugherder
https://hg.mozilla.org/mozilla-central/rev/045cdefdb941
https://hg.mozilla.org/mozilla-central/rev/e08645cf7793
Status: NEW → RESOLVED
Last Resolved: 2 years ago
status-firefox49: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
You need to log in before you can comment on or make changes to this bug.