Bug 235687

Summary: Blobs retrieved from IndexedDB and re-saved causes WebkitBlobResource error 1
Product: WebKit Reporter: Miku Kawakubo <m.kawakubo88>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bfulgham, sihui_liu, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 15   
Hardware: iPhone / iPad   
OS: iOS 15   
Attachments:
Description Flags
Test page none

Description Miku Kawakubo 2022-01-26 21:24:08 PST
Created attachment 450100 [details]
Test page

# Steps to reproduce:

1. Open attached test page by Safari.
2. Click "create new blob" button, then a blob is created and displayed.
3. Click "put" button, then the blob is saved on IndexedDB.
4. Close Safari and open it again.
5. Click "get" button.
6. Click "show" button to make sure the blob is restored and displayed correctly.
7. Click "put" button.
8. Click "show" button.

# Expected behavior:

The blob is displayed correctly, as 1024x1024 image.

# Actual behavior:

The blob is not displayed.
The following error appears in the console.

```
Failed to load resource: The operation couldn't be completed. (WebKitBlobResource error 1.)
```

I have tested in Safari on iOS 13.7, 14.5, 15.2 and macOS 12.1, and confirmed this behavior in all of them.
Note that on the macOS it only occurs occasionally, and on the others it does almost always.
Comment 1 Radar WebKit Bug Importer 2022-02-01 11:10:27 PST
<rdar://problem/88338524>