Title: [249991] branches/safari-608-branch/Source/WebKit
- Revision
- 249991
- Author
- [email protected]
- Date
- 2019-09-17 15:29:25 -0700 (Tue, 17 Sep 2019)
Log Message
Cherry-pick r249723. rdar://problem/55291687
Hangs on Swiss.com due to the web process being blocked on StorageAreaMap::LoadValuesIfNeeded
https://bugs.webkit.org/show_bug.cgi?id=201644
<rdar://problem/54942761>
Reviewed by Geoffrey Garen.
Mark the StorageManagerSet::GetValues sync IPC from the WebContent process to the Network
process with a UnboundedSynchronousIPCScope so that it will process critical sync IPC
from the UIProcess (such as WebPage::GetPositionInformation) while waiting for a reply.
* WebProcess/WebStorage/StorageAreaMap.cpp:
(WebKit::StorageAreaMap::loadValuesIfNeeded):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@249723 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Modified Paths
Diff
Modified: branches/safari-608-branch/Source/WebKit/ChangeLog (249990 => 249991)
--- branches/safari-608-branch/Source/WebKit/ChangeLog 2019-09-17 22:29:23 UTC (rev 249990)
+++ branches/safari-608-branch/Source/WebKit/ChangeLog 2019-09-17 22:29:25 UTC (rev 249991)
@@ -1,5 +1,39 @@
2019-09-17 Kocsen Chung <[email protected]>
+ Cherry-pick r249723. rdar://problem/55291687
+
+ Hangs on Swiss.com due to the web process being blocked on StorageAreaMap::LoadValuesIfNeeded
+ https://bugs.webkit.org/show_bug.cgi?id=201644
+ <rdar://problem/54942761>
+
+ Reviewed by Geoffrey Garen.
+
+ Mark the StorageManagerSet::GetValues sync IPC from the WebContent process to the Network
+ process with a UnboundedSynchronousIPCScope so that it will process critical sync IPC
+ from the UIProcess (such as WebPage::GetPositionInformation) while waiting for a reply.
+
+ * WebProcess/WebStorage/StorageAreaMap.cpp:
+ (WebKit::StorageAreaMap::loadValuesIfNeeded):
+
+ git-svn-id: https://svn.webkit.org/repository/webkit/trunk@249723 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+ 2019-09-10 Chris Dumez <[email protected]>
+
+ Hangs on Swiss.com due to the web process being blocked on StorageAreaMap::LoadValuesIfNeeded
+ https://bugs.webkit.org/show_bug.cgi?id=201644
+ <rdar://problem/54942761>
+
+ Reviewed by Geoffrey Garen.
+
+ Mark the StorageManagerSet::GetValues sync IPC from the WebContent process to the Network
+ process with a UnboundedSynchronousIPCScope so that it will process critical sync IPC
+ from the UIProcess (such as WebPage::GetPositionInformation) while waiting for a reply.
+
+ * WebProcess/WebStorage/StorageAreaMap.cpp:
+ (WebKit::StorageAreaMap::loadValuesIfNeeded):
+
+2019-09-17 Kocsen Chung <[email protected]>
+
Cherry-pick r249703. rdar://problem/55291692
[iOS] We sometimes attempt to use a terminated prewarmed WebContent process
Modified: branches/safari-608-branch/Source/WebKit/WebProcess/WebStorage/StorageAreaMap.cpp (249990 => 249991)
--- branches/safari-608-branch/Source/WebKit/WebProcess/WebStorage/StorageAreaMap.cpp 2019-09-17 22:29:23 UTC (rev 249990)
+++ branches/safari-608-branch/Source/WebKit/WebProcess/WebStorage/StorageAreaMap.cpp 2019-09-17 22:29:25 UTC (rev 249991)
@@ -174,10 +174,11 @@
if (m_storageMap)
return;
+ // The StorageManager::GetValues() IPC may be very slow because it may need to fetch the values from disk and there may be a lot
+ // of data.
+ IPC::UnboundedSynchronousIPCScope unboundedSynchronousIPCScope;
+
HashMap<String, String> values;
- // FIXME: This should use a special sendSync flag to indicate that we don't want to process incoming messages while waiting for a reply.
- // (This flag does not yet exist). Since loadValuesIfNeeded() ends up being called from within _javascript_ code, processing incoming synchronous messages
- // could lead to weird reentrency bugs otherwise.
WebProcess::singleton().ensureNetworkProcessConnection().connection().sendSync(Messages::StorageManager::GetValues(m_storageMapID, m_currentSeed), Messages::StorageManager::GetValues::Reply(values), 0);
m_storageMap = StorageMap::create(m_quotaInBytes);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes