Bug 137647 - Fetching Blob URLs with XHR gives null content-type and content-length
Summary: Fetching Blob URLs with XHR gives null content-type and content-length
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL: http://bl.ocks.org/nolanlawson/0eac30...
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2014-10-12 06:54 PDT by Nolan Lawson
Modified: 2017-06-07 13:10 PDT (History)
4 users (show)

See Also:


Attachments
Test case in pure HTML (2.82 KB, text/html)
2014-10-12 06:54 PDT, Nolan Lawson
no flags Details
Layout test (5.58 KB, patch)
2017-06-05 11:41 PDT, Daniel Bates
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nolan Lawson 2014-10-12 06:54:52 PDT
Created attachment 239703 [details]
Test case in pure HTML

1. Create a Blob
2. Create an object URL for the blob
3. Fetch with XHR

Expected:

content-type and content-length should match the blob's type and size.

Actual:

Safari gives null for both.

Details:

I've provided a live test and also attached it.

Notice that in Firefox and Chrome, the correct content-type and content-length are given, whereas in Safari it's given as null and null.

Tested in Safari 7.1 (9537.85.10.17.1).
Comment 1 Alexey Proskuryakov 2014-10-13 23:08:33 PDT
rdar://problem/18215114
Comment 2 Daniel Bates 2017-06-02 13:01:28 PDT
The test (attachment #239703 [details]) passes for me in Safari for Mac version 10.1 (12603.1.24).
Comment 3 Daniel Bates 2017-06-05 11:41:14 PDT
Created attachment 312020 [details]
Layout test
Comment 4 Daniel Bates 2017-06-07 13:10:54 PDT
Comment on attachment 312020 [details]
Layout test

Clearing flags on attachment: 312020

Committed r217901: <http://trac.webkit.org/changeset/217901>
Comment 5 Daniel Bates 2017-06-07 13:10:56 PDT
All reviewed patches have been landed.  Closing bug.