|
Lines 1-3
a/Source/WebKit/ChangeLog_sec1
|
|
|
1 |
2021-07-02 Sihui Liu <sihui_liu@apple.com> |
| 2 |
|
| 3 |
WebIDBServer created after NetworkProcess::prepareToSuspend is not suspended correctly |
| 4 |
https://bugs.webkit.org/show_bug.cgi?id=227650 |
| 5 |
|
| 6 |
Reviewed by NOBODY (OOPS!). |
| 7 |
|
| 8 |
We created WebIDBServer on receiving AddIDBConnection message from web process, to make sure WebIDBServer's |
| 9 |
thread is launched only when it is needed. Now WebIDBServer uses WorkQueue, which uses thread from thread pool, |
| 10 |
we can go back to ensure WebIDBServer at when connection to web process is needed. By doing this, it's less |
| 11 |
likely WebIDBServer is created after NetworkProcess::prepareToSuspend. To make it more safe, this patch also |
| 12 |
sets m_shouldSuspendIDBServer on NetworkProcess::prepareToSuspend. If the value is true, WebIDBServer is |
| 13 |
suspended after creation. |
| 14 |
|
| 15 |
* NetworkProcess/NetworkConnectionToWebProcess.cpp: |
| 16 |
(WebKit::NetworkConnectionToWebProcess::addIDBConnection): Deleted. |
| 17 |
* NetworkProcess/NetworkConnectionToWebProcess.h: |
| 18 |
* NetworkProcess/NetworkConnectionToWebProcess.messages.in: |
| 19 |
* NetworkProcess/NetworkProcess.cpp: |
| 20 |
(WebKit::NetworkProcess::createNetworkConnectionToWebProcess): |
| 21 |
(WebKit::NetworkProcess::prepareToSuspend): |
| 22 |
(WebKit::NetworkProcess::resume): |
| 23 |
(WebKit::NetworkProcess::createWebIDBServer): |
| 24 |
* NetworkProcess/NetworkProcess.h: |
| 25 |
* WebProcess/Databases/IndexedDB/WebIDBConnectionToServer.cpp: |
| 26 |
(WebKit::WebIDBConnectionToServer::WebIDBConnectionToServer): |
| 27 |
|
| 1 |
2021-07-02 Chris Dumez <cdumez@apple.com> |
28 |
2021-07-02 Chris Dumez <cdumez@apple.com> |
| 2 |
|
29 |
|
| 3 |
Take a process assertion in the network process when holding locked files |
30 |
Take a process assertion in the network process when holding locked files |