Modified: trunk/Source/WebKit/ChangeLog (247768 => 247769)
--- trunk/Source/WebKit/ChangeLog 2019-07-24 16:27:43 UTC (rev 247768)
+++ trunk/Source/WebKit/ChangeLog 2019-07-24 17:10:19 UTC (rev 247769)
@@ -1,3 +1,17 @@
+2019-07-24 Chris Dumez <[email protected]>
+
+ Unreviewed, rolling out r247766.
+
+ Caused an API test failure
+
+ Reverted changeset:
+
+ "Crash under
+ WebKit:WTF::Detail::CallableWrapper<WebKit::ResourceLoadStatisticsMemoryStore::updateCookieBlocking(WTF::CompletionHandler<void
+ ()>&&)::$_32::operator()()::'lambda'(), void>::call"
+ https://bugs.webkit.org/show_bug.cgi?id=200071
+ https://trac.webkit.org/changeset/247766
+
2019-07-23 Chris Dumez <[email protected]>
Crash under WebKit:WTF::Detail::CallableWrapper<WebKit::ResourceLoadStatisticsMemoryStore::updateCookieBlocking(WTF::CompletionHandler<void ()>&&)::$_32::operator()()::'lambda'(), void>::call
Modified: trunk/Source/WebKit/NetworkProcess/Classifier/WebResourceLoadStatisticsStore.cpp (247768 => 247769)
--- trunk/Source/WebKit/NetworkProcess/Classifier/WebResourceLoadStatisticsStore.cpp 2019-07-24 16:27:43 UTC (rev 247768)
+++ trunk/Source/WebKit/NetworkProcess/Classifier/WebResourceLoadStatisticsStore.cpp 2019-07-24 17:10:19 UTC (rev 247769)
@@ -180,15 +180,7 @@
WebResourceLoadStatisticsStore::~WebResourceLoadStatisticsStore()
{
ASSERT(RunLoop::isMain());
- ASSERT(!m_statisticsStore);
- ASSERT(!m_persistentStorage);
-}
-void WebResourceLoadStatisticsStore::didDestroyNetworkSession()
-{
- ASSERT(RunLoop::isMain());
-
- m_networkSession = nullptr;
flushAndDestroyPersistentStore();
}
@@ -343,9 +335,6 @@
return;
case StorageAccessStatus::RequiresUserPrompt:
{
- if (!m_networkSession)
- return completionHandler(StorageAccessWasGranted::No, StorageAccessPromptWasShown::No);
-
CompletionHandler<void(bool)> requestConfirmationCompletionHandler = [this, protectedThis = protectedThis.copyRef(), subFrameDomain, topFrameDomain, frameID, pageID, completionHandler = WTFMove(completionHandler)] (bool userDidGrantAccess) mutable {
if (userDidGrantAccess)
grantStorageAccess(subFrameDomain, topFrameDomain, frameID, pageID, StorageAccessPromptWasShown::Yes, WTFMove(completionHandler));
@@ -369,11 +358,13 @@
return;
}
- m_statisticsStore->requestStorageAccess(WTFMove(subFrameDomain), WTFMove(topFrameDomain), frameID, pageID, [statusHandler = WTFMove(statusHandler)](StorageAccessStatus status) mutable {
- postTaskReply([statusHandler = WTFMove(statusHandler), status]() mutable {
- statusHandler(status);
+ if (m_statisticsStore) {
+ m_statisticsStore->requestStorageAccess(WTFMove(subFrameDomain), WTFMove(topFrameDomain), frameID, pageID, [statusHandler = WTFMove(statusHandler)](StorageAccessStatus status) mutable {
+ postTaskReply([statusHandler = WTFMove(statusHandler), status]() mutable {
+ statusHandler(status);
+ });
});
- });
+ }
});
}
Modified: trunk/Source/WebKit/NetworkProcess/Classifier/WebResourceLoadStatisticsStore.h (247768 => 247769)
--- trunk/Source/WebKit/NetworkProcess/Classifier/WebResourceLoadStatisticsStore.h 2019-07-24 16:27:43 UTC (rev 247768)
+++ trunk/Source/WebKit/NetworkProcess/Classifier/WebResourceLoadStatisticsStore.h 2019-07-24 17:10:19 UTC (rev 247769)
@@ -94,8 +94,6 @@
~WebResourceLoadStatisticsStore();
- void didDestroyNetworkSession();
-
static const OptionSet<WebsiteDataType>& monitoredDataTypes();
WorkQueue& statisticsQueue() { return m_statisticsQueue.get(); }
Modified: trunk/Source/WebKit/NetworkProcess/NetworkSession.cpp (247768 => 247769)
--- trunk/Source/WebKit/NetworkProcess/NetworkSession.cpp 2019-07-24 16:27:43 UTC (rev 247768)
+++ trunk/Source/WebKit/NetworkProcess/NetworkSession.cpp 2019-07-24 17:10:19 UTC (rev 247769)
@@ -107,11 +107,6 @@
NetworkSession::~NetworkSession()
{
-#if ENABLE(RESOURCE_LOAD_STATISTICS)
- if (m_resourceLoadStatistics)
- m_resourceLoadStatistics->didDestroyNetworkSession();
-#endif
-
m_storageManager->resume();
m_storageManager->waitUntilTasksFinished();
}