Bug 235687 - Blobs retrieved from IndexedDB and re-saved causes WebkitBlobResource error 1
Summary: Blobs retrieved from IndexedDB and re-saved causes WebkitBlobResource error 1
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: Safari 15
Hardware: iPhone / iPad iOS 15
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-01-26 21:24 PST by Miku Kawakubo
Modified: 2022-02-01 11:10 PST (History)
3 users (show)

See Also:


Attachments
Test page (1.70 KB, text/html)
2022-01-26 21:24 PST, Miku Kawakubo
no flags Details

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