Changeset 228936 in webkit


Ignore:
Timestamp:
Feb 22, 2018 2:53:41 PM (6 years ago)
Author:
commit-queue@webkit.org
Message:

Caches::initialize should call all pending initialization callbacks in case of error
https://bugs.webkit.org/show_bug.cgi?id=183062

Patch by Youenn Fablet <youenn@apple.com> on 2018-02-22
Reviewed by Chris Dumez.

  • NetworkProcess/cache/CacheStorageEngineCaches.cpp:

(WebKit::CacheStorage::Caches::initialize):
(WebKit::CacheStorage::Caches::initializeSize):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r228935 r228936  
     12018-02-22  Youenn Fablet  <youenn@apple.com>
     2
     3        Caches::initialize should call all pending initialization callbacks in case of error
     4        https://bugs.webkit.org/show_bug.cgi?id=183062
     5
     6        Reviewed by Chris Dumez.
     7
     8        * NetworkProcess/cache/CacheStorageEngineCaches.cpp:
     9        (WebKit::CacheStorage::Caches::initialize):
     10        (WebKit::CacheStorage::Caches::initializeSize):
     11
    1122018-02-22  Youenn Fablet  <youenn@apple.com>
    213
  • trunk/Source/WebKit/NetworkProcess/cache/CacheStorageEngineCaches.cpp

    r228935 r228936  
    151151        if (error) {
    152152            callback(Error::WriteDisk);
     153
     154            auto pendingCallbacks = WTFMove(m_pendingInitializationCallbacks);
     155            for (auto& callback : pendingCallbacks)
     156                callback(Error::WriteDisk);
    153157            return;
    154158        }
     
    176180    if (!m_storage) {
    177181        callback(Error::Internal);
     182
     183        auto pendingCallbacks = WTFMove(m_pendingInitializationCallbacks);
     184        for (auto& callback : pendingCallbacks)
     185            callback(Error::Internal);
    178186        return;
    179187    }
Note: See TracChangeset for help on using the changeset viewer.