Bug 159360 - Blob content type not preserved when retrieving blobs from IndexedDB
Summary: Blob content type not preserved when retrieving blobs from IndexedDB
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Brady Eidson
URL:
Keywords: InRadar
Depends on:
Blocks: 149117
  Show dependency treegraph
 
Reported: 2016-07-01 11:27 PDT by Brady Eidson
Modified: 2016-07-01 12:11 PDT (History)
5 users (show)

See Also:


Attachments
Patch (28.94 KB, patch)
2016-07-01 11:32 PDT, Brady Eidson
achristensen: review+
beidson: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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