Changeset 249702 in webkit
- Timestamp:
- Sep 9, 2019 9:06:42 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r249686 r249702 1 2019-09-09 Chris Dumez <cdumez@apple.com> 2 3 REGRESSION: http/tests/resourceLoadStatistics/do-not-capture-statistics-for-simple-top-navigations.html is frequently timing out on iOS EWS bots 4 https://bugs.webkit.org/show_bug.cgi?id=201550 5 6 Reviewed by Alex Christensen. 7 8 Update test to do checks on a timer if its call to testRunner.statisticsNotifyObserver() is a no-op 9 due to having no statistics to send to the network process. 10 11 * http/tests/resourceLoadStatistics/do-not-capture-statistics-for-simple-top-navigations.html: 12 1 13 2019-09-09 Joonghun Park <pjh0718@gmail.com> 2 14 -
trunk/LayoutTests/http/tests/resourceLoadStatistics/do-not-capture-statistics-for-simple-top-navigations.html
r236578 r249702 11 11 jsTestIsAsync = true; 12 12 13 let timerHandle = 0; 14 13 15 function finishTest() { 16 if (timerHandle) 17 clearTimeout(timerHandle); 18 14 19 shouldBeFalse('testRunner.isStatisticsRegisteredAsSubFrameUnder("http://localhost", "http://127.0.0.1")'); 15 20 shouldBeFalse('testRunner.isStatisticsRegisteredAsSubFrameUnder("http://127.0.0.1", "http://localhost")'); … … 29 34 testRunner.setStatisticsNotifyPagesWhenDataRecordsWereScanned(true); 30 35 testRunner.installStatisticsDidScanDataRecordsCallback(finishTest); 31 testRunner.statisticsNotifyObserver(); 36 if (!testRunner.statisticsNotifyObserver()) 37 timerHandle = setTimeout(finishTest, 100); 32 38 break; 33 39 default: -
trunk/LayoutTests/platform/ios-wk2/TestExpectations
r249595 r249702 1355 1355 # problem with blur handling 1356 1356 mathml/focus-event-handling.html [ Failure ] 1357 1358 webkit.org/b/201550 http/tests/resourceLoadStatistics/do-not-capture-statistics-for-simple-top-navigations.html [ Pass Timeout ] -
trunk/Source/WebCore/ChangeLog
r249701 r249702 1 2019-09-09 Chris Dumez <cdumez@apple.com> 2 3 REGRESSION: http/tests/resourceLoadStatistics/do-not-capture-statistics-for-simple-top-navigations.html is frequently timing out on iOS EWS bots 4 https://bugs.webkit.org/show_bug.cgi?id=201550 5 6 Reviewed by Alex Christensen. 7 8 * loader/ResourceLoadObserver.h: 9 (WebCore::ResourceLoadObserver::hasStatistics const): 10 1 11 2019-09-09 Timothy Hatcher <timothy@apple.com> 2 12 -
trunk/Source/WebCore/loader/ResourceLoadObserver.h
r249603 r249702 58 58 virtual void clearState() { } 59 59 60 virtual bool hasStatistics() const { return false; } 61 60 62 #if ENABLE(RESOURCE_LOAD_STATISTICS) && !RELEASE_LOG_DISABLED 61 63 virtual void setShouldLogUserInteraction(bool) { } -
trunk/Source/WebKit/ChangeLog
r249684 r249702 1 2019-09-09 Chris Dumez <cdumez@apple.com> 2 3 REGRESSION: http/tests/resourceLoadStatistics/do-not-capture-statistics-for-simple-top-navigations.html is frequently timing out on iOS EWS bots 4 https://bugs.webkit.org/show_bug.cgi?id=201550 5 6 Reviewed by Alex Christensen. 7 8 * WebProcess/InjectedBundle/API/c/WKBundle.cpp: 9 (WKBundleResourceLoadStatisticsNotifyObserver): 10 * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h: 11 1 12 2019-09-09 Alex Christensen <achristensen@webkit.org> 2 13 -
trunk/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundle.cpp
r249575 r249702 312 312 } 313 313 314 void WKBundleResourceLoadStatisticsNotifyObserver(WKBundleRef) 315 { 314 bool WKBundleResourceLoadStatisticsNotifyObserver(WKBundleRef) 315 { 316 if (!WebCore::ResourceLoadObserver::shared().hasStatistics()) 317 return false; 318 316 319 WebCore::ResourceLoadObserver::shared().updateCentralStatisticsStore(); 320 return true; 317 321 } 318 322 -
trunk/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundlePrivate.h
r249575 r249702 93 93 94 94 WK_EXPORT void WKBundleClearResourceLoadStatistics(WKBundleRef); 95 WK_EXPORT voidWKBundleResourceLoadStatisticsNotifyObserver(WKBundleRef);95 WK_EXPORT bool WKBundleResourceLoadStatisticsNotifyObserver(WKBundleRef); 96 96 97 97 WK_EXPORT void WKBundleExtendClassesForParameterCoder(WKBundleRef bundle, WKArrayRef classes); -
trunk/Source/WebKit/WebProcess/WebCoreSupport/WebResourceLoadObserver.h
r249603 r249702 57 57 void updateCentralStatisticsStore() final; 58 58 void clearState() final; 59 60 bool hasStatistics() const final { return !m_perSessionResourceStatisticsMap.isEmpty(); } 59 61 60 62 private: -
trunk/Tools/ChangeLog
r249701 r249702 1 2019-09-09 Chris Dumez <cdumez@apple.com> 2 3 REGRESSION: http/tests/resourceLoadStatistics/do-not-capture-statistics-for-simple-top-navigations.html is frequently timing out on iOS EWS bots 4 https://bugs.webkit.org/show_bug.cgi?id=201550 5 6 Reviewed by Alex Christensen. 7 8 Update testRunner.statisticsNotifyObserver() to return a boolean indicating if it did 9 anything or not. 10 11 * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl: 12 * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp: 13 (WTR::InjectedBundle::statisticsNotifyObserver): 14 * WebKitTestRunner/InjectedBundle/InjectedBundle.h: 15 * WebKitTestRunner/InjectedBundle/TestRunner.cpp: 16 (WTR::TestRunner::statisticsNotifyObserver): 17 * WebKitTestRunner/InjectedBundle/TestRunner.h: 18 1 19 2019-09-09 Timothy Hatcher <timothy@apple.com> 2 20 -
trunk/Tools/WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl
r249675 r249702 322 322 void setStatisticsCrossSiteLoadWithLinkDecoration(DOMString fromHost, DOMString toHost); 323 323 void setStatisticsTimeToLiveUserInteraction(double seconds); 324 voidstatisticsNotifyObserver();324 boolean statisticsNotifyObserver(); 325 325 void statisticsProcessStatisticsAndDataRecords(); 326 326 void statisticsUpdateCookieBlocking(object completionHandler); -
trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.cpp
r249575 r249702 1018 1018 } 1019 1019 1020 voidInjectedBundle::statisticsNotifyObserver()1021 { 1022 WKBundleResourceLoadStatisticsNotifyObserver(m_bundle);1020 bool InjectedBundle::statisticsNotifyObserver() 1021 { 1022 return WKBundleResourceLoadStatisticsNotifyObserver(m_bundle); 1023 1023 } 1024 1024 -
trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.h
r245280 r249702 134 134 void setAllowsAnySSLCertificate(bool); 135 135 136 voidstatisticsNotifyObserver();136 bool statisticsNotifyObserver(); 137 137 138 138 void textDidChangeInTextField(); -
trunk/Tools/WebKitTestRunner/InjectedBundle/TestRunner.cpp
r249675 r249702 1932 1932 } 1933 1933 1934 voidTestRunner::statisticsNotifyObserver()1935 { 1936 InjectedBundle::singleton().statisticsNotifyObserver();1934 bool TestRunner::statisticsNotifyObserver() 1935 { 1936 return InjectedBundle::singleton().statisticsNotifyObserver(); 1937 1937 } 1938 1938 -
trunk/Tools/WebKitTestRunner/InjectedBundle/TestRunner.h
r249675 r249702 387 387 void statisticsDidScanDataRecordsCallback(); 388 388 void statisticsDidRunTelemetryCallback(unsigned totalPrevalentResources, unsigned totalPrevalentResourcesWithUserInteraction, unsigned top3SubframeUnderTopFrameOrigins); 389 voidstatisticsNotifyObserver();389 bool statisticsNotifyObserver(); 390 390 void statisticsProcessStatisticsAndDataRecords(); 391 391 void statisticsUpdateCookieBlocking(JSValueRef completionHandler);
Note: See TracChangeset
for help on using the changeset viewer.