NEW 280062
[WPE] FileSystem::hardLink doesn't work on all filesystems and platforms
https://bugs.webkit.org/show_bug.cgi?id=280062
Summary [WPE] FileSystem::hardLink doesn't work on all filesystems and platforms
Jani Hautakangas
Reported 2024-09-20 07:04:42 PDT
FileSystem::hardLink uses std::filesystem::create_hard_link under the hood, but some file systems do not support hard links. For example, the FAT file system, which is commonly used on memory cards and flash drives, does not support them. This issue arose during WPEView development on Android, where persistent cookies weren't working. The problem was traced back to NetworkCacheBlobStorage, which relies on hard links. The Android platform doesn't support hard links. Hard links are also used in other places, such as CacheStorageManager and SQLiteIDBTransaction, but these components appear to fall back to file copying if creating a hard link fails.
Attachments
Note You need to log in before you can comment on or make changes to this bug.