Changeset 236578 in webkit
- Timestamp:
- Sep 27, 2018 5:23:37 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r236573 r236578 1 2018-09-27 John Wilander <wilander@apple.com> 2 3 Resource Load Statistics: Non-redirected top frame navigation should not get captured in statistics 4 https://bugs.webkit.org/show_bug.cgi?id=190055 5 <rdar://problem/44843460> 6 7 Reviewed by Chris Dumez. 8 9 * http/tests/resourceLoadStatistics/do-not-capture-statistics-for-simple-top-navigations-expected.txt: Added. 10 * http/tests/resourceLoadStatistics/do-not-capture-statistics-for-simple-top-navigations.html: Added. 11 1 12 2018-09-27 Chris Dumez <cdumez@apple.com> 2 13 -
trunk/Source/WebCore/ChangeLog
r236577 r236578 1 2018-09-27 John Wilander <wilander@apple.com> 2 3 Resource Load Statistics: Non-redirected top frame navigation should not get captured in statistics 4 https://bugs.webkit.org/show_bug.cgi?id=190055 5 <rdar://problem/44843460> 6 7 Reviewed by Chris Dumez. 8 9 Test: http/tests/resourceLoadStatistics/do-not-capture-statistics-for-simple-top-navigations.html 10 11 * loader/ResourceLoadStatistics.cpp: 12 (WebCore::ResourceLoadStatistics::decode): 13 Corrects legacy statistics for frames and triggers a re-classification. 14 1 15 2018-09-27 Jer Noble <jer.noble@apple.com> 2 16 -
trunk/Source/WebCore/loader/ResourceLoadStatistics.cpp
r235897 r236578 214 214 215 215 // Subframe stats 216 decodeHashCountedSet(decoder, "subframeUnderTopFrameOrigins", subframeUnderTopFrameOrigins); 217 216 if (modelVersion >= 14) 217 decodeHashCountedSet(decoder, "subframeUnderTopFrameOrigins", subframeUnderTopFrameOrigins); 218 218 219 // Subresource stats 219 220 decodeHashCountedSet(decoder, "subresourceUnderTopFrameOrigins", subresourceUnderTopFrameOrigins); … … 229 230 if (!decoder.decodeBool("isVeryPrevalentResource", isVeryPrevalentResource)) 230 231 return false; 232 } 233 234 // Trigger re-classification based on model 14. 235 if (modelVersion < 14) { 236 isPrevalentResource = false; 237 isVeryPrevalentResource = false; 231 238 } 232 239 -
trunk/Source/WebKit/ChangeLog
r236571 r236578 1 2018-09-27 John Wilander <wilander@apple.com> 2 3 Resource Load Statistics: Non-redirected top frame navigation should not get captured in statistics 4 https://bugs.webkit.org/show_bug.cgi?id=190055 5 <rdar://problem/44843460> 6 7 Reviewed by Chris Dumez. 8 9 * UIProcess/ResourceLoadStatisticsMemoryStore.cpp: 10 Bumped the statisticsModelVersion to 14 to be able to 11 correct legacy statistics. 12 (WebKit::ResourceLoadStatisticsMemoryStore::logFrameNavigation): 13 Now skips capture if it's the main frame. 14 1 15 2018-09-27 Brent Fulgham <bfulgham@apple.com> 2 16 -
trunk/Source/WebKit/UIProcess/ResourceLoadStatisticsMemoryStore.cpp
r236563 r236578 47 47 using namespace WebCore; 48 48 49 constexpr unsigned statisticsModelVersion { 1 3};49 constexpr unsigned statisticsModelVersion { 14 }; 50 50 constexpr unsigned maxNumberOfRecursiveCallsInRedirectTraceBack { 50 }; 51 51 constexpr Seconds minimumStatisticsProcessingInterval { 5_s }; … … 597 597 598 598 bool statisticsWereUpdated = false; 599 if ( targetHost != mainFrameHost && !(areTargetAndMainFrameDomainsAssociated || areTargetAndSourceDomainsAssociated)) {599 if (!isMainFrame && targetHost != mainFrameHost && !(areTargetAndMainFrameDomainsAssociated || areTargetAndSourceDomainsAssociated)) { 600 600 auto& targetStatistics = ensureResourceStatisticsForPrimaryDomain(targetPrimaryDomain); 601 601 targetStatistics.lastSeen = ResourceLoadStatistics::reduceTimeResolution(WallTime::now());
Note: See TracChangeset
for help on using the changeset viewer.