Bug 137647

Summary: Fetching Blob URLs with XHR gives null content-type and content-length
Product: WebKit Reporter: Nolan Lawson <nolan>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, dahjelle.webkit.org, darin, dbates
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
URL: http://bl.ocks.org/nolanlawson/0eac306e4dac2114c752
Attachments:
Description Flags
Test case in pure HTML
none
Layout test none

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.