Bug 215120

Summary: RegistrationDatabase::openSQLiteDatabase can spin
Product: WebKit Reporter: youenn fablet <youennf>
Component: Service WorkersAssignee: youenn fablet <youennf>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, cdumez, ggaren, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch for landing none

Description youenn fablet 2020-08-04 02:05:55 PDT
RegistrationDatabase::openSQLiteDatabase can spin
Comment 1 youenn fablet 2020-08-04 02:08:19 PDT
<rdar://problem/64850347>
Comment 2 youenn fablet 2020-08-04 02:08:58 PDT
Probably a regression from https://bugs.webkit.org/show_bug.cgi?id=201002
Comment 3 youenn fablet 2020-08-04 02:40:31 PDT
Created attachment 405910 [details]
Patch
Comment 4 youenn fablet 2020-08-04 04:51:41 PDT
Created attachment 405914 [details]
Patch
Comment 5 youenn fablet 2020-08-04 08:52:37 PDT
win failure unrelated
Comment 6 youenn fablet 2020-08-04 08:55:23 PDT
Comment on attachment 405914 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=405914&action=review

> Source/WebCore/workers/service/server/RegistrationDatabase.cpp:332
> +    postTaskToWorkQueue([this, pushCounter = ++m_pushCounter, completionHandler = WTFMove(completionHandler)]() mutable {

I guess I could push the counter increment to postTaskToWorkQueue
Comment 7 Geoffrey Garen 2020-08-04 08:59:30 PDT
Comment on attachment 405914 [details]
Patch

r=me
Comment 8 Alex Christensen 2020-08-04 23:00:03 PDT
Comment on attachment 405914 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=405914&action=review

>> Source/WebCore/workers/service/server/RegistrationDatabase.cpp:332
>> +    postTaskToWorkQueue([this, pushCounter = ++m_pushCounter, completionHandler = WTFMove(completionHandler)]() mutable {
> 
> I guess I could push the counter increment to postTaskToWorkQueue

Yeah, as it stands now this is an unused capture.
Comment 9 youenn fablet 2020-08-05 01:46:20 PDT
Created attachment 405991 [details]
Patch for landing
Comment 10 EWS 2020-08-05 04:03:13 PDT
Committed r265283: <https://trac.webkit.org/changeset/265283>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 405991 [details].