[Webkit-unassigned] [Bug 268037] New: IndexedDB Error preparing Blob/File data to be stored

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 24 15:30:16 PST 2024


https://bugs.webkit.org/show_bug.cgi?id=268037

            Bug ID: 268037
           Summary: IndexedDB Error preparing Blob/File data to be stored
           Product: WebKit
           Version: Safari 17
          Hardware: iPhone / iPad
                OS: iOS 17
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: aw248065 at gmail.com

Created attachment 469537

  --> https://bugs.webkit.org/attachment.cgi?id=469537&action=review

store file/blob in IndexedDB test

While trying to store a File in IndexedDB in Safari private mode, we've run into an issue where IndexedDB returns back an error that says "Error preparing Blob/File data to be stored in objectStore".

When digging into the issue more, we've found that this happens specifically when the Safari app is opened straight to a new private tab - ie if I were to long tap on the Safari app, choose "New Private Tab" and then run the test, I encounter this error.

I'm on Safari 17.2 specifically, on an iPhone SE 2nd generation.

I've attached a file containing all the code I was using to make a min-case repro of the issue. The steps I were using to run the test are:

1. Run `npx serve` to get a testable URL I can use on the phone
2. Close the Safari app (if it was already open)
3. Re-open Safari straight to a private tab (by doing a long tap on the app -> "New Private Tab")
4. Go to the URL provided from `npx serve`
5. Click on the "Import Image" button to get a file on my phone to try to store in IndexedDB

Results:
- When the test is successful, there's a results string that shows `Successfully stored {name-of-file} in IndexedDB`
- When there is an IndexedDB error, the results string displays the error message (which in this case is "Error preparing Blob/File data to be stored")
    - similar console logging around the results from IndexedDB also log the actual error object

Other info to note:
If I were to:
- first open a non-private tab, go to say google.com in the non-private tab, then switch to a private tab to run the test, then the store succeeds
- run the test in a non-private tab, then the store succeeds
    - interestingly if I first run the test in a non-private tab, then all subsequent attempts a running the test in a private tab will work - until I restart the iPhone
- open private tabs for Firefox/Chrome and run the test, then the store succeeds
- use Safari desktop to run the test, then the store succeeds

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240124/2fce6b0a/attachment.htm>


More information about the webkit-unassigned mailing list