Changeset 219323 in webkit
- Timestamp:
- Jul 10, 2017 9:08:20 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r219320 r219323 1 2017-07-10 Brent Fulgham <bfulgham@apple.com> 2 3 Resource Load Statistics: Prune statistics in orders of importance 4 https://bugs.webkit.org/show_bug.cgi?id=174215 5 <rdar://problem/33164403> 6 7 Unreviewed test correction. 8 9 Drive-by fix after recent refactoring to correct the new function names in TestRunner. 10 11 * http/tests/loading/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-deletion.html: 12 * http/tests/loading/resourceLoadStatistics/partitioned-cookies-with-and-without-user-interaction.html: 13 1 14 2017-07-10 Simon Fraser <simon.fraser@apple.com> 2 15 -
trunk/LayoutTests/http/tests/loading/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-deletion.html
r219297 r219323 94 94 testRunner.setStatisticsMinimumTimeBetweenDataRecordsRemoval(0); 95 95 96 testRunner.statistics UpdateCookiePartitioningForOneDomain("localhost", true);96 testRunner.statisticsSetShouldPartitionCookiesForHost("localhost", true); 97 97 testRunner.setStatisticsPrevalentResource("http://localhost", true); 98 98 if (!testRunner.isStatisticsPrevalentResource("http://localhost")) -
trunk/LayoutTests/http/tests/loading/resourceLoadStatistics/partitioned-cookies-with-and-without-user-interaction.html
r219297 r219323 74 74 setEnableFeature(true); 75 75 76 testRunner.statistics UpdateCookiePartitioningForOneDomain("localhost", true);76 testRunner.statisticsSetShouldPartitionCookiesForHost("localhost", true); 77 77 78 78 testRunner.waitUntilDone(); -
trunk/Source/WebKit2/ChangeLog
r219319 r219323 1 2017-07-10 Brent Fulgham <bfulgham@apple.com> 2 3 Resource Load Statistics: Prune statistics in orders of importance 4 https://bugs.webkit.org/show_bug.cgi?id=174215 5 <rdar://problem/33164403> 6 7 Unreviewed test correction. 8 9 * UIProcess/WebResourceLoadStatisticsStore.cpp: 10 (WebKit::pruneResources): The revised algorithm did not update the remaining 11 count to be pruned, causing a test failure. 12 1 13 2017-07-10 John Wilander <wilander@apple.com> 2 14 -
trunk/Source/WebKit2/UIProcess/WebResourceLoadStatisticsStore.cpp
r219319 r219323 941 941 }); 942 942 } 943 944 for (size_t i = 0, end = std::min(numberOfEntriesToPrune, statisticsToPrune.size()); i != end; ++i) 943 944 unsigned removed = 0; 945 for (size_t i = 0, end = std::min(numberOfEntriesToPrune, statisticsToPrune.size()); i != end; ++i) { 945 946 statisticsMap.remove(statisticsToPrune[i].topPrivatelyOwnedDomain); 947 ++removed; 948 } 949 950 numberOfEntriesToPrune -= removed; 946 951 } 947 952
Note: See TracChangeset
for help on using the changeset viewer.