Do not add a caches to its engine if the salt cannot be initialized
authoryouenn@apple.com <youenn@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 14 Feb 2019 15:51:47 +0000 (15:51 +0000)
committeryouenn@apple.com <youenn@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 14 Feb 2019 15:51:47 +0000 (15:51 +0000)
commit6668ea3fd8a90732df63a92132733cf3c7f2a5d7
treefb8935ba78dba1775ca43bbcdef487aea9df339b
parentd76bca3c8c1d2e20567a3f1540868d32971e0bc2
Do not add a caches to its engine if the salt cannot be initialized
https://bugs.webkit.org/show_bug.cgi?id=194604

Reviewed by Antti Koivisto.

This is a follow-up to https://bugs.webkit.org/show_bug.cgi?id=194588.
We should return early if initialize fails.

* NetworkProcess/cache/CacheStorageEngine.cpp:
(WebKit::CacheStorage::Engine::readCachesFromDisk):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@241544 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit/ChangeLog
Source/WebKit/NetworkProcess/cache/CacheStorageEngine.cpp