Changeset 219323 in webkit


Ignore:
Timestamp:
Jul 10, 2017 9:08:20 PM (7 years ago)
Author:
Brent Fulgham
Message:

Resource Load Statistics: Prune statistics in orders of importance
https://bugs.webkit.org/show_bug.cgi?id=174215
<rdar://problem/33164403>

Unreviewed test correction.

Source/WebKit2:

  • UIProcess/WebResourceLoadStatisticsStore.cpp:

(WebKit::pruneResources): The revised algorithm did not update the remaining
count to be pruned, causing a test failure.

LayoutTests:

Drive-by fix after recent refactoring to correct the new function names in TestRunner.

  • http/tests/loading/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-deletion.html:
  • http/tests/loading/resourceLoadStatistics/partitioned-cookies-with-and-without-user-interaction.html:
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r219320 r219323  
     12017-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
    1142017-07-10  Simon Fraser  <simon.fraser@apple.com>
    215
  • trunk/LayoutTests/http/tests/loading/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-deletion.html

    r219297 r219323  
    9494        testRunner.setStatisticsMinimumTimeBetweenDataRecordsRemoval(0);
    9595
    96         testRunner.statisticsUpdateCookiePartitioningForOneDomain("localhost", true);
     96        testRunner.statisticsSetShouldPartitionCookiesForHost("localhost", true);
    9797        testRunner.setStatisticsPrevalentResource("http://localhost", true);
    9898        if (!testRunner.isStatisticsPrevalentResource("http://localhost"))
  • trunk/LayoutTests/http/tests/loading/resourceLoadStatistics/partitioned-cookies-with-and-without-user-interaction.html

    r219297 r219323  
    7474        setEnableFeature(true);
    7575
    76         testRunner.statisticsUpdateCookiePartitioningForOneDomain("localhost", true);
     76        testRunner.statisticsSetShouldPartitionCookiesForHost("localhost", true);
    7777
    7878        testRunner.waitUntilDone();
  • trunk/Source/WebKit2/ChangeLog

    r219319 r219323  
     12017-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
    1132017-07-10  John Wilander  <wilander@apple.com>
    214
  • trunk/Source/WebKit2/UIProcess/WebResourceLoadStatisticsStore.cpp

    r219319 r219323  
    941941        });
    942942    }
    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) {
    945946        statisticsMap.remove(statisticsToPrune[i].topPrivatelyOwnedDomain);
     947        ++removed;
     948    }
     949
     950    numberOfEntriesToPrune -= removed;
    946951}
    947952   
Note: See TracChangeset for help on using the changeset viewer.