[Webkit-unassigned] [Bug 273827] REGRESSION (iOS 17.4): IndexedDB failing with "UnknownError: Connection to Indexed Database server lost."

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 16 13:06:04 PDT 2024


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

--- Comment #8 from Luke Abbott <luke at playingbyear.com> ---
> By "it is impossible to re-open the database connection", do you mean the
> `indexedDB.open()` fails after the connection lost error? If so, this is a
> different issue than the error itself. Site should be able to build
> IndexedDB connection to the relaunched network process on open().
> 
> Does everything work correctly if you reload the page?

Yes to both.

Once whatever is breaking breaks, and a database operation fails (generally with an InvalidStateError I think), the library I'm using (Dexie v4) detects this and calls `db.close()` followed by `db.open()`, with up to 3 attempts at restoring the connection. This behavior was initially implemented in Dexie because Chrome started randomly dropping the database connection around v51. It was effective for that issue since the connection could be restored, but it cannot restore the connection with this new iOS 17.4 issue. 

I am not 100% sure simply reloading the page (versus restarting the process) fixes it, but I *believe* it does based on other devs' reports. Of course, the problem with that approach is a) it interrupts the user's flow and b) any data not yet persisted to IndexedDB is lost.

-- 
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/20240516/a29cea25/attachment.htm>


More information about the webkit-unassigned mailing list