Bug 254427

Summary: transaction.commit inside onupgradeneeded deadlock
Product: WebKit Reporter: Nick Kusters <webkit>
Component: Website StorageAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Minor CC: ahmad.saleem792, sihui_liu, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

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>