Bug 227632

Summary: Regression(r278786) LocalStorageDatabase's transaction may be remain active when process gets suspended
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: WebKit2Assignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: ggaren, kkinnunen, sihui_liu, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=227552
Bug Depends on:    
Bug Blocks: 226938    
Attachments:
Description Flags
Patch none

Description Chris Dumez 2021-07-02 11:36:26 PDT
LocalStorageDatabase's transaction may be remain active when process gets suspended. LocalStorageDatabase commits its transaction after 500ms. However, when PrepareToSuspend gets called, we suspend/hang the storage thread and the task to commit the transaction cannot get committed.
Comment 1 Chris Dumez 2021-07-02 11:44:37 PDT
Created attachment 432808 [details]
Patch
Comment 2 Geoffrey Garen 2021-07-02 13:10:17 PDT
Comment on attachment 432808 [details]
Patch

r=me
Comment 3 EWS 2021-07-02 13:23:06 PDT
Committed r279512 (239364@main): <https://commits.webkit.org/239364@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 432808 [details].
Comment 4 Radar WebKit Bug Importer 2021-07-02 13:24:16 PDT
<rdar://problem/80099966>