-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
https://bugs.webkit.org/show_bug.cgi?id=259113 rdar://112086693 Reviewed by Chris Dumez. The truncateDatabaseFile SPI is only enabled on iOS right now. Recently we have been trying to unifying our SQLite implementation across macOS and iOS to make things more maintainable (e.g. 265918@main and 265791@main). We should enable this SPI on all Cocoa platforms since there's nothing iOS-specific about it. Originally I was going to change the the two callers of truncateDatabaseFile (in StorageTracker in WebKitLegacy and DatabaseTracker in WebDatabase) to also call this function on all Cocoa platforms rather than on iOS only. But it turns out that that in turn required enabling a bunch of other logic for all Cocoa platforms (e.g. cross-process database deletion notifications). This seems like it's not worth doing considering that the callers are deprecated anyway. So I left DatabaseTracker and StorageTracker alone in this patch. * Source/WebCore/PAL/PAL.xcodeproj/project.pbxproj: * Source/WebCore/PAL/pal/PlatformMac.cmake: * Source/WebCore/PAL/pal/spi/cocoa/SQLite3SPI.h: Renamed from Source/WebCore/PAL/pal/spi/ios/SQLite3SPI.h. * Source/WebCore/platform/sql/SQLiteFileSystem.cpp: * Source/WebCore/platform/sql/SQLiteFileSystem.h: * Source/WebKitLegacy/Storage/StorageTracker.cpp: Canonical link: https://commits.webkit.org/272753@main
- Loading branch information
Showing
6 changed files
with
11 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters