[Webkit-unassigned] [Bug 226547] New: indexedDB.open() sometimes hangs forever in pending state on first page load in iOS 14.6

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 2 11:52:07 PDT 2021


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

            Bug ID: 226547
           Summary: indexedDB.open() sometimes hangs forever in pending
                    state on first page load in iOS 14.6
           Product: WebKit
           Version: Safari 14
          Hardware: Unspecified
                OS: iOS 14
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: simontaylor1 at ntlworld.com

The first indexedDB.open() call made by a page appears to be flaky on first load in iOS 14.6.

Its readyState stays as "pending" forever, and none of the event handlers (including "onblocked") are called.

I can easily reproduce on iOS 14.6 on an iPhone 12 mini when loading a URL from scanning a QR code.

1) Clear all tabs in Safari
2) Swipe up to return to home screen
3) Open camera, scan QR code for https://tango-bravo.net/safari-indexeddb-bug/bug.html (will add a QR as an attachment)
4) Note that no onsuccess etc logs are displayed (can connect inspector at this point to verify readyState is pending)
5) Hit refresh. This time the handlers are called correctly.

A workaround appears to be just to attempt to open a dummy indexedDB first that we don't care about in the main page. That one sometimes fails too (less reproducible for me) but the second one always appears to work.

https://tango-bravo.net/safari-indexeddb-bug/workaround.html has a demo page of that, QR code attached here too.

The closest existing bug I could find was Bug 171049, which I note saw some recent activity. However for me this doesn't depend on user state at all - reproduces even after clearing website data. This one appears to be new with iOS 14.6 (a lot of our sites broke 100% reproducibly when freshly launched from a QR code due to this underlying issue).

-- 
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/20210602/395139a2/attachment.htm>


More information about the webkit-unassigned mailing list