[webkit-changes] [WebKit/WebKit] 61cec3: Ensure CacheStorageDiskStore is destroyed on the c...

Sihui noreply at github.com
Thu Jan 19 23:49:23 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 61cec390e9de0d1712e224af09bf151b57738919
      https://github.com/WebKit/WebKit/commit/61cec390e9de0d1712e224af09bf151b57738919
  Author: Sihui Liu <sihui_liu at apple.com>
  Date:   2023-01-19 (Thu, 19 Jan 2023)

  Changed paths:
    M Source/WebKit/NetworkProcess/storage/CacheStorageDiskStore.cpp

  Log Message:
  -----------
  Ensure CacheStorageDiskStore is destroyed on the callback queue
https://bugs.webkit.org/show_bug.cgi?id=250869
rdar://104295786

Reviewed by Chris Dumez.

CacheStorageDiskStore is not ThreadSafeRefCounted (we don't expect it to be ref-ed or deref-ed from different threads),
so we need to pass the last ref of CacheStorageDiskStore to the queue that creates it.

* Source/WebKit/NetworkProcess/storage/CacheStorageDiskStore.cpp:
(WebKit::CacheStorageDiskStore::readAllRecords):
(WebKit::CacheStorageDiskStore::readRecords):

Canonical link: https://commits.webkit.org/259127@main




More information about the webkit-changes mailing list