Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d2e7f67539216d096f372d7ed9ef740248e68253
      
https://github.com/WebKit/WebKit/commit/d2e7f67539216d096f372d7ed9ef740248e68253
  Author: Sihui Liu <sihui_...@apple.com>
  Date:   2022-12-08 (Thu, 08 Dec 2022)

  Changed paths:
    M Source/WTF/wtf/FileSystem.cpp
    M Source/WTF/wtf/FileSystem.h
    M Source/WTF/wtf/PlatformHave.h
    M Source/WTF/wtf/cocoa/FileSystemCocoa.mm
    M Source/WebCore/loader/appcache/ApplicationCacheStorage.h
    M Source/WebKit/NetworkProcess/NetworkSession.cpp
    M Source/WebKit/UIProcess/WebProcessProxy.h
    M Source/WebKit/WebProcess/Model/mac/ARKitInlinePreviewModelPlayerMac.h
    M Source/WebKit/WebProcess/Model/mac/ARKitInlinePreviewModelPlayerMac.mm
    M Source/WebKit/WebProcess/WebProcess.cpp
    M Source/WebKit/WebProcess/WebProcess.h

  Log Message:
  -----------
  Mark cache directories as purgeable
https://bugs.webkit.org/show_bug.cgi?id=247828
rdar://101927216

Reviewed by Chris Dumez.

These directories were purgeable by CacheDelete because they were under Caches/ 
directory by default. After 255271@main,
the directories of a WebsiteDataStore created with UUID can be outside of 
Caches/ directory, so we need to explicitly
mark them purgeable to keep the old behavior. Notice the files are unmarked if 
they are modified after being marked, so
we set the flag before process exits or session is destroyed.

* Source/WTF/wtf/FileSystem.cpp:
(WTF::FileSystemImpl::setExcludedFromBackup):
(WTF::FileSystemImpl::markPurgeable):
* Source/WTF/wtf/FileSystem.h:
* Source/WTF/wtf/PlatformHave.h:
* Source/WTF/wtf/cocoa/FileSystemCocoa.mm:
(WTF::FileSystemImpl::markPurgeable):
* Source/WebCore/loader/appcache/ApplicationCacheStorage.h:
(WebCore::ApplicationCacheStorage::cacheDirectory const):
* Source/WebKit/NetworkProcess/NetworkSession.cpp:
(WebKit::NetworkSession::invalidateAndCancel):
* Source/WebKit/UIProcess/WebProcessProxy.h:
* Source/WebKit/WebProcess/Model/mac/ARKitInlinePreviewModelPlayerMac.h:
* Source/WebKit/WebProcess/Model/mac/ARKitInlinePreviewModelPlayerMac.mm:
(WebKit::ARKitInlinePreviewModelPlayerMac::modelElementCacheDirectory):
(WebKit::modelElementCacheDirectory): Deleted.
* Source/WebKit/WebProcess/WebProcess.cpp:
(WebKit::WebProcess::didClose):
* Source/WebKit/WebProcess/WebProcess.h:

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


_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to