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

Chris Dumez
Reported 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.
Attachments
Patch (3.85 KB, patch)
2021-07-02 11:44 PDT, Chris Dumez
no flags
Chris Dumez
Comment 1 2021-07-02 11:44:37 PDT
Geoffrey Garen
Comment 2 2021-07-02 13:10:17 PDT
Comment on attachment 432808 [details] Patch r=me
EWS
Comment 3 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].
Radar WebKit Bug Importer
Comment 4 2021-07-02 13:24:16 PDT
Note You need to log in before you can comment on or make changes to this bug.