WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
226589
Make WebIDBServer use WorkQueue instead of Thread
https://bugs.webkit.org/show_bug.cgi?id=226589
Summary
Make WebIDBServer use WorkQueue instead of Thread
Sihui Liu
Reported
2021-06-03 10:34:04 PDT
...
Attachments
Patch
(14.53 KB, patch)
2021-06-03 10:46 PDT
,
Sihui Liu
no flags
Details
Formatted Diff
Diff
Patch for landing
(14.97 KB, patch)
2021-06-03 14:23 PDT
,
Sihui Liu
no flags
Details
Formatted Diff
Diff
Patch for landing
(15.15 KB, patch)
2021-06-03 23:08 PDT
,
Sihui Liu
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Sihui Liu
Comment 1
2021-06-03 10:46:06 PDT
Created
attachment 430480
[details]
Patch
Chris Dumez
Comment 2
2021-06-03 12:26:37 PDT
Comment on
attachment 430480
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=430480&action=review
> Source/WebKit/NetworkProcess/IndexedDB/WebIDBServer.cpp:67 > + auto origins = m_server->getOrigins();
Why?
> Source/WebKit/NetworkProcess/IndexedDB/WebIDBServer.cpp:-394 > - tryClose();
Why don't we call this anymore? This is the kind of thing function-level changelogs are for.
Sihui Liu
Comment 3
2021-06-03 12:53:17 PDT
Comment on
attachment 430480
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=430480&action=review
>> Source/WebKit/NetworkProcess/IndexedDB/WebIDBServer.cpp:67 >> + auto origins = m_server->getOrigins(); > > Why?
Oops should remove
>> Source/WebKit/NetworkProcess/IndexedDB/WebIDBServer.cpp:-394 >> - tryClose(); > > Why don't we call this anymore? This is the kind of thing function-level changelogs are for.
This was added to aggressively destroy WebIDBServer to ensure thread exits. It's possible a new connection is immediately created (web page is reloaded after web process crashes) after we close WebIDBServer, and we will create a new WebIDBServer. In this case both servers may access the same database on different work queues, unless we wait until the old WebIDBServer is destroyed before creating new one. To make things easy, we can just keep the WebIDBServer until session is destroyed. Will add to changelog.
Sihui Liu
Comment 4
2021-06-03 14:23:53 PDT
Created
attachment 430498
[details]
Patch for landing
EWS
Comment 5
2021-06-03 15:29:46 PDT
Tools/Scripts/svn-apply failed to apply
attachment 430498
[details]
to trunk. Please resolve the conflicts and upload a new patch.
Sihui Liu
Comment 6
2021-06-03 23:08:09 PDT
Created
attachment 430546
[details]
Patch for landing
EWS
Comment 7
2021-06-03 23:35:45 PDT
Committed
r278449
(
238469@main
): <
https://commits.webkit.org/238469@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 430546
[details]
.
Radar WebKit Bug Importer
Comment 8
2021-06-03 23:36:21 PDT
<
rdar://problem/78856484
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug