Title: [247111] trunk/Source/WebKit
Revision
247111
Author
[email protected]
Date
2019-07-03 15:14:04 -0700 (Wed, 03 Jul 2019)

Log 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):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (247110 => 247111)


--- trunk/Source/WebKit/ChangeLog	2019-07-03 22:11:36 UTC (rev 247110)
+++ trunk/Source/WebKit/ChangeLog	2019-07-03 22:14:04 UTC (rev 247111)
@@ -1,3 +1,13 @@
+2019-07-03  Youenn Fablet  <[email protected]>
+
+        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):
+
 2019-07-03  Jer Noble  <[email protected]>
 
         Unreviewed, rolling out r246053.

Modified: trunk/Source/WebKit/NetworkProcess/cache/CacheStorageEngine.cpp (247110 => 247111)


--- trunk/Source/WebKit/NetworkProcess/cache/CacheStorageEngine.cpp	2019-07-03 22:11:36 UTC (rev 247110)
+++ trunk/Source/WebKit/NetworkProcess/cache/CacheStorageEngine.cpp	2019-07-03 22:14:04 UTC (rev 247111)
@@ -299,9 +299,9 @@
     if (!shouldComputeSalt)
         return;
 
-    String saltPath = FileSystem::pathByAppendingComponent(m_rootPath, "salt"_s);
-    m_ioQueue->dispatch([this, weakThis = makeWeakPtr(this), saltPath = WTFMove(saltPath)] () mutable {
-        FileSystem::makeAllDirectories(m_rootPath);
+    m_ioQueue->dispatch([this, weakThis = makeWeakPtr(this), rootPath = m_rootPath.isolatedCopy()] () mutable {
+        FileSystem::makeAllDirectories(rootPath);
+        String saltPath = FileSystem::pathByAppendingComponent(rootPath, "salt"_s);
         RunLoop::main().dispatch([this, weakThis = WTFMove(weakThis), salt = readOrMakeSalt(saltPath)]() mutable {
             if (!weakThis)
                 return;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to