Bug 159360

Summary: Blob content type not preserved when retrieving blobs from IndexedDB
Product: WebKit Reporter: Brady Eidson <beidson>
Component: WebCore Misc.Assignee: Brady Eidson <beidson>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, alecflett, bfulgham, commit-queue, jsbell
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 149117    
Attachments:
Description Flags
Patch achristensen: review+, beidson: commit-queue-

Description Brady Eidson 2016-07-01 11:27:10 PDT
Blob content type not preserved when retrieving blobs from IndexedDB

Noticed this when storing an image/svg+xml blob, then trying to assign the blob to an <img> element and having that fail.

Since we didn't preserve content type coming out, we created a BitmapImage backing store instead of an SVGImage.
Comment 1 Brady Eidson 2016-07-01 11:27:25 PDT
<rdar://problem/27057357>
Comment 2 Brady Eidson 2016-07-01 11:32:25 PDT
Created attachment 282564 [details]
Patch
Comment 3 Brady Eidson 2016-07-01 11:54:13 PDT
WHOOPS - Forgot to include the test expectations!
Comment 4 Brady Eidson 2016-07-01 12:11:21 PDT
https://trac.webkit.org/changeset/202747