-
Notifications
You must be signed in to change notification settings - Fork 341
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
blob: fetch of slice() without valid content type yields unexpected results #1464
Comments
I originally incorrectly filed this as w3c/FileAPI#177, but @inexorabletash correctly pointed out that in each of the test cases, while the content type from the header was not the empty string, the sliced blob |
I commented on the other bug:
|
So what do browsers do then? Note, an upcoming change to Gecko will probably change case 2 to behave like webkit. |
Results of the tests pasted in the issue:
👍 with the patch gecko does in fact return |
There's at least two different things here:
|
The tests from this issue are posted in web-platform-tests/wpt#35469 |
#1436 had a large amount of overlap with this issue, and the associated wpt tests PR web-platform-tests/wpt#36243 contains tests for this here.
Is there a WebKit issue for this? If so, I think we can close this unless we need separate issues from those posted in #1436 for Chrome and Firefox (I plan to do the work for this in https://bugzilla.mozilla.org/show_bug.cgi?id=1771423)? |
Filed https://bugs.webkit.org/show_bug.cgi?id=246519. Thanks again Dan! |
Based on my reading of blob.slice(), it seems that the resulting blobs content type should be the empty string under the following cases:
contentType
is not givencontentType
has a value outside the range of U+0020 to U+007EAfter writing a simple wpt test, it seems like no browser does 1 and only one does 2.
contentType
contentType
Note that in each of these cases the
type
value of the slice is the empty string. This issue may be related to #1436.Just in case the issue is actually my test cases 😄, I've attached the example I used below:
The text was updated successfully, but these errors were encountered: