Changeset 247111 in webkit


Ignore:
Timestamp:
Jul 3, 2019 3:14:04 PM (5 years ago)
Author:
youenn@apple.com
Message:

Isolate CacheStorage::Engine path when hopping to a background thread
https://bugs.webkit.org/show_bug.cgi?id=199461

Reviewed by Chris Dumez.

  • NetworkProcess/cache/CacheStorageEngine.cpp:

(WebKit::CacheStorage::Engine::initialize):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r247109 r247111  
     12019-07-03  Youenn Fablet  <youenn@apple.com>
     2
     3        Isolate CacheStorage::Engine path when hopping to a background thread
     4        https://bugs.webkit.org/show_bug.cgi?id=199461
     5
     6        Reviewed by Chris Dumez.
     7
     8        * NetworkProcess/cache/CacheStorageEngine.cpp:
     9        (WebKit::CacheStorage::Engine::initialize):
     10
    1112019-07-03  Jer Noble  <jer.noble@apple.com>
    212
  • trunk/Source/WebKit/NetworkProcess/cache/CacheStorageEngine.cpp

    r245715 r247111  
    300300        return;
    301301
    302     String saltPath = FileSystem::pathByAppendingComponent(m_rootPath, "salt"_s);
    303     m_ioQueue->dispatch([this, weakThis = makeWeakPtr(this), saltPath = WTFMove(saltPath)] () mutable {
    304         FileSystem::makeAllDirectories(m_rootPath);
     302    m_ioQueue->dispatch([this, weakThis = makeWeakPtr(this), rootPath = m_rootPath.isolatedCopy()] () mutable {
     303        FileSystem::makeAllDirectories(rootPath);
     304        String saltPath = FileSystem::pathByAppendingComponent(rootPath, "salt"_s);
    305305        RunLoop::main().dispatch([this, weakThis = WTFMove(weakThis), salt = readOrMakeSalt(saltPath)]() mutable {
    306306            if (!weakThis)
Note: See TracChangeset for help on using the changeset viewer.