Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: a33fd49e6aeff21a4e139088fc38ddcec176d78e https://github.com/WebKit/WebKit/commit/a33fd49e6aeff21a4e139088fc38ddcec176d78e Author: Youenn Fablet <you...@apple.com> Date: 2025-02-27 (Thu, 27 Feb 2025)
Changed paths: A LayoutTests/storage/filesystemaccess/writable-quota-expected.txt A LayoutTests/storage/filesystemaccess/writable-quota.html M Source/WebKit/NetworkProcess/storage/FileSystemStorageError.h M Source/WebKit/NetworkProcess/storage/FileSystemStorageError.serialization.in M Source/WebKit/NetworkProcess/storage/FileSystemStorageHandle.cpp M Source/WebKit/NetworkProcess/storage/FileSystemStorageHandle.h M Source/WebKit/NetworkProcess/storage/NetworkStorageManager.cpp Log Message: ----------- Add quota check for FileSystem writables rdar://144381471 https://bugs.webkit.org/show_bug.cgi?id=287238 Reviewed by Sihui Liu. Add a quota check when writing data, and for truncate since truncate can increase the file size. We also do a zero quota check for other commands to make sure the order of operation is preserved. Covered by added test. * LayoutTests/storage/filesystemaccess/writable-quota-expected.txt: Added. * LayoutTests/storage/filesystemaccess/writable-quota.html: Added. * Source/WebKit/NetworkProcess/storage/FileSystemStorageError.h: (WebKit::convertToException): * Source/WebKit/NetworkProcess/storage/FileSystemStorageError.serialization.in: * Source/WebKit/NetworkProcess/storage/FileSystemStorageHandle.cpp: (WebKit::FileSystemStorageHandle::executeCommandForWritableInternal): (WebKit::FileSystemStorageHandle::executeCommandForWritable): (WebKit::FileSystemStorageHandle::requestNewCapacityForSyncAccessHandle): * Source/WebKit/NetworkProcess/storage/FileSystemStorageHandle.h: * Source/WebKit/NetworkProcess/storage/NetworkStorageManager.cpp: (WebKit::NetworkStorageManager::executeCommandForWritable): Canonical link: https://commits.webkit.org/291304@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes