Bug 254427 - transaction.commit inside onupgradeneeded deadlock
Summary: transaction.commit inside onupgradeneeded deadlock
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Website Storage (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Minor
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-03-24 08:59 PDT by Nick Kusters
Modified: 2023-05-21 17:20 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Kusters 2023-03-24 08:59:48 PDT
If you commit the transaction inside the onupgradeneeded event, none of the events (onerror, onabort, oncomplete) will fire and starting a new transaction later on will fail because IndexedDB thinks there is still a version upgrade transaction active (error message: "A version change transaction is running.").
Comment 1 Radar WebKit Bug Importer 2023-03-31 09:00:15 PDT
<rdar://problem/107474101>