[Webkit-unassigned] [Bug 226547] 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
Mon Jun 7 01:46:30 PDT 2021


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

--- Comment #15 from Simon Taylor <simontaylor1 at ntlworld.com> ---
> I've encountered the same problem with my web app on iOS 14.7 beta.
> IndexedDB is not opening when Safari is loaded for the first time. The same
> is true for web apps added to the home screen. A page refresh fixes this
> problem. The problem re-occurs when Safari is closed and then re-opened.
> 
> Would be great to see an urgent fix as my web app is working offline first
> and depends on IndexedDB to load data.

Does the workaround work for you too? It basically boils down to adding another open call for a database that you don't care about before the one that you need to work. Something like indexedDB.open("dummy", 1) appears to be enough for me, but I'd be interested if that works for PWA added to the home screen too.

Of course I'd also welcome an update to fix this ASAP but as Safari is built into the iOS image, it means that updates are dependent on OS updates, so workarounds are usually required in practice for these kind of things. Apple also only tends to pull updates from the upstream webkit project every 6 months or so I believe.

On a separate note, I thought I'd add that for us this was triggered by Emscripten's filesystem support that uses indexedDB - took a while to discover the hang on load was due to that run dependency never being resolved. It might not affect pages built with the current Emscripten (we're using quite an old version) but thought I'd mention it explicitly in case anyone else is searching for Emscipten WebAssembly builds hanging on first page load.

-- 
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/20210607/658b9f59/attachment-0001.htm>


More information about the webkit-unassigned mailing list