⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 248999 in webkit


Ignore:
Timestamp:
Aug 22, 2019, 2:40:25 AM (7 years ago)
Author:
Claudio Saavedra
Message:

[SOUP] NetworkProcessSoup does not initialize CacheOptions correctly
https://bugs.webkit.org/show_bug.cgi?id=200886

Reviewed by Philippe Normand.

r247567 wrongly initializes CacheOptions in a local variable that is never used
instead of using NetworkProcess's member variable, that is later used by the
NetworkSession to initialize the cache.

  • NetworkProcess/soup/NetworkProcessSoup.cpp:

(WebKit::NetworkProcess::platformInitializeNetworkProcess):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r248974 r248999  
     12019-08-22  Claudio Saavedra  <csaavedra@igalia.com>
     2
     3        [SOUP] NetworkProcessSoup does not initialize CacheOptions correctly
     4        https://bugs.webkit.org/show_bug.cgi?id=200886
     5
     6        Reviewed by Philippe Normand.
     7
     8        r247567 wrongly initializes CacheOptions in a local variable that is never used
     9        instead of using NetworkProcess's member variable, that is later used by the
     10        NetworkSession to initialize the cache.
     11
     12        * NetworkProcess/soup/NetworkProcessSoup.cpp:
     13        (WebKit::NetworkProcess::platformInitializeNetworkProcess):
     14
    1152019-08-21  Tim Horton  <timothy_horton@apple.com>
    216
  • trunk/Source/WebKit/NetworkProcess/soup/NetworkProcessSoup.cpp

    r248846 r248999  
    118118    SoupNetworkSession::clearOldSoupCache(FileSystem::directoryName(m_diskCacheDirectory));
    119119
    120     OptionSet<NetworkCache::CacheOption> cacheOptions { NetworkCache::CacheOption::RegisterNotify };
     120    m_cacheOptions = { NetworkCache::CacheOption::RegisterNotify };
    121121#if ENABLE(NETWORK_CACHE_SPECULATIVE_REVALIDATION)
    122122    if (parameters.shouldEnableNetworkCacheSpeculativeRevalidation)
    123         cacheOptions.add(NetworkCache::CacheOption::SpeculativeRevalidation);
     123        m_cacheOptions.add(NetworkCache::CacheOption::SpeculativeRevalidation);
    124124#endif
    125125
Note: See TracChangeset for help on using the changeset viewer.