Changeset 245517 in webkit
- Timestamp:
- May 20, 2019 10:14:33 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r245509 r245517 1 2019-05-20 Sihui Liu <sihui_liu@apple.com> 2 3 [ Mac WK2 iOS Sim] Layout Test http/tests/resourceLoadStatistics/website-data-removal-for-site-navigated-to-with-link-decoration.html is a flaky failure 4 https://bugs.webkit.org/show_bug.cgi?id=196307 5 <rdar://problem/49345360> 6 7 Reviewed by Alex Christensen. 8 9 * platform/ios-simulator-wk2/TestExpectations: 10 * platform/mac-wk2/TestExpectations: 11 1 12 2019-05-19 Brent Fulgham <bfulgham@apple.com> 2 13 -
trunk/LayoutTests/platform/ios-simulator-wk2/TestExpectations
r245402 r245517 70 70 webkit.org/b/162975 http/tests/cache/disk-cache/memory-cache-revalidation-updates-disk-cache.html [ Pass Failure ] 71 71 72 webkit.org/b/196307 http/tests/resourceLoadStatistics/website-data-removal-for-site-navigated-to-with-link-decoration.html [ Pass Failure ]73 74 72 webkit.org/b/196112 imported/w3c/web-platform-tests/mathml/relations/css-styling/mathvariant-bold.html [ Pass ImageOnlyFailure ] 75 73 webkit.org/b/196112 imported/w3c/web-platform-tests/mathml/relations/css-styling/mathvariant-double-struck.html [ Pass ImageOnlyFailure ] -
trunk/LayoutTests/platform/mac-wk2/TestExpectations
r245427 r245517 910 910 webkit.org/b/194916 fast/mediastream/MediaStream-video-element.html [ Pass Failure ] 911 911 912 webkit.org/b/196307 http/tests/resourceLoadStatistics/website-data-removal-for-site-navigated-to-with-link-decoration.html [ Pass Failure ]913 914 912 webkit.org/b/196376 storage/domstorage/localstorage/private-browsing-affects-storage.html [ Pass Failure ] 915 913 -
trunk/Source/WebKit/ChangeLog
r245516 r245517 1 2019-05-20 Sihui Liu <sihui_liu@apple.com> 2 3 [ Mac WK2 iOS Sim] Layout Test http/tests/resourceLoadStatistics/website-data-removal-for-site-navigated-to-with-link-decoration.html is a flaky failure 4 https://bugs.webkit.org/show_bug.cgi?id=196307 5 <rdar://problem/49345360> 6 7 Reviewed by Alex Christensen. 8 9 Delay dumping statistics if there is data being removed. 10 11 * NetworkProcess/Classifier/ResourceLoadStatisticsStore.cpp: 12 (WebKit::ResourceLoadStatisticsStore::removeDataRecords): 13 * NetworkProcess/Classifier/ResourceLoadStatisticsStore.h: 14 (WebKit::ResourceLoadStatisticsStore::dataRecordsBeingRemoved const): 15 * NetworkProcess/Classifier/WebResourceLoadStatisticsStore.cpp: 16 (WebKit::WebResourceLoadStatisticsStore::dumpResourceLoadStatistics): 17 (WebKit::WebResourceLoadStatisticsStore::tryDumpResourceLoadStatistics): 18 * NetworkProcess/Classifier/WebResourceLoadStatisticsStore.h: 19 1 20 2019-05-20 Ludovico de Nittis <ludovico.denittis@collabora.com> 2 21 -
trunk/Source/WebKit/NetworkProcess/Classifier/ResourceLoadStatisticsStore.cpp
r243222 r245517 222 222 weakThis->incrementRecordsDeletedCountForDomains(WTFMove(domainsWithDeletedWebsiteData)); 223 223 weakThis->setDataRecordsBeingRemoved(false); 224 weakThis->m_store.tryDumpResourceLoadStatistics(); 224 225 completionHandler(); 225 226 #if !RELEASE_LOG_DISABLED -
trunk/Source/WebKit/NetworkProcess/Classifier/ResourceLoadStatisticsStore.h
r245025 r245517 186 186 virtual bool isDatabaseStore()const { return false; } 187 187 188 bool dataRecordsBeingRemoved() const { return m_dataRecordsBeingRemoved; } 189 188 190 protected: 189 191 static unsigned computeImportance(const WebCore::ResourceLoadStatistics&); -
trunk/Source/WebKit/NetworkProcess/Classifier/WebResourceLoadStatisticsStore.cpp
r245025 r245517 616 616 617 617 postTask([this, completionHandler = WTFMove(completionHandler)]() mutable { 618 String result = m_statisticsStore ? m_statisticsStore->dumpResourceLoadStatistics() : emptyString(); 619 postTaskReply([result = result.isolatedCopy(), completionHandler = WTFMove(completionHandler)]() mutable { 620 completionHandler(result); 621 }); 618 ASSERT(!m_dumpResourceLoadStatisticsCompletionHandler); 619 m_dumpResourceLoadStatisticsCompletionHandler = WTFMove(completionHandler); 620 if (m_statisticsStore && m_statisticsStore->dataRecordsBeingRemoved()) 621 return; 622 tryDumpResourceLoadStatistics(); 623 }); 624 } 625 626 void WebResourceLoadStatisticsStore::tryDumpResourceLoadStatistics() 627 { 628 ASSERT(!RunLoop::isMain()); 629 630 if (!m_dumpResourceLoadStatisticsCompletionHandler) 631 return; 632 633 String result = m_statisticsStore ? m_statisticsStore->dumpResourceLoadStatistics() : emptyString(); 634 postTaskReply([result = result.isolatedCopy(), completionHandler = WTFMove(m_dumpResourceLoadStatisticsCompletionHandler)]() mutable { 635 completionHandler(result); 622 636 }); 623 637 } -
trunk/Source/WebKit/NetworkProcess/Classifier/WebResourceLoadStatisticsStore.h
r245025 r245517 128 128 void setVeryPrevalentResource(const RegistrableDomain&, CompletionHandler<void()>&&); 129 129 void dumpResourceLoadStatistics(CompletionHandler<void(String)>&&); 130 void tryDumpResourceLoadStatistics(); 130 131 void isPrevalentResource(const RegistrableDomain&, CompletionHandler<void(bool)>&&); 131 132 void isVeryPrevalentResource(const RegistrableDomain&, CompletionHandler<void(bool)>&&); … … 206 207 207 208 bool m_firstNetworkProcessCreated { false }; 209 210 CompletionHandler<void(String)> m_dumpResourceLoadStatisticsCompletionHandler; 208 211 }; 209 212
Note: See TracChangeset
for help on using the changeset viewer.