Changeset 292010 in webkit
- Timestamp:
- Mar 28, 2022, 5:00:29 PM (5 years ago)
- Location:
- trunk/Source
- Files:
-
- 8 edited
-
WTF/ChangeLog (modified) (1 diff)
-
WTF/Scripts/Preferences/WebPreferencesInternal.yaml (modified) (1 diff)
-
WebKit/ChangeLog (modified) (1 diff)
-
WebKit/FeatureFlags/WebKit-appletvos.plist (modified) (1 diff)
-
WebKit/FeatureFlags/WebKit-ios.plist (modified) (1 diff)
-
WebKit/FeatureFlags/WebKit-macos.plist (modified) (1 diff)
-
WebKit/FeatureFlags/WebKit-watchos.plist (modified) (1 diff)
-
WebKit/UIProcess/WebsiteData/Cocoa/WebsiteDataStoreCocoa.mm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r291992 r292010 1 2022-03-28 Sihui Liu <sihui_liu@apple.com> 2 3 Disable custom storage paths for IndexedDB and LocalStorage by default 4 https://bugs.webkit.org/show_bug.cgi?id=236977 5 <rdar://problem/89559929> 6 7 Reviewed by Geoffrey Garen. 8 9 Add an internal debug feature for using genreal directory for storage. 10 11 * Scripts/Preferences/WebPreferencesInternal.yaml: 12 1 13 2022-03-28 Chris Dumez <cdumez@apple.com> 2 14 -
trunk/Source/WTF/Scripts/Preferences/WebPreferencesInternal.yaml
r291938 r292010 981 981 default: WebKit::defaultUseGPUProcessForMediaEnabled() 982 982 983 UseGeneralDirectoryForStorage: 984 type: bool 985 humanReadableName: "Use General Directory For Storage" 986 humanReadableDescription: "Use general storage directory for IndexedDB and LocalStorage" 987 webcoreBinding: none 988 exposed: [ WebKit ] 989 defaultValue: 990 WebKit: 991 default: true 992 983 993 UseSceneKitForModel: 984 994 type: bool -
trunk/Source/WebKit/ChangeLog
r292008 r292010 1 2022-03-28 Sihui Liu <sihui_liu@apple.com> 2 3 Disable custom storage paths for IndexedDB and LocalStorage by default 4 https://bugs.webkit.org/show_bug.cgi?id=236977 5 <rdar://problem/89559929> 6 7 Reviewed by Geoffrey Garen. 8 9 Developers can enable them by disabling "general directory for storage" via internal debug feature or system 10 feature flag. 11 12 * FeatureFlags/WebKit-appletvos.plist: 13 * FeatureFlags/WebKit-ios.plist: 14 * FeatureFlags/WebKit-macos.plist: 15 * FeatureFlags/WebKit-watchos.plist: 16 * UIProcess/WebsiteData/Cocoa/WebsiteDataStoreCocoa.mm: 17 (WebKit::internalFeatureEnabled): 18 (WebKit::WebsiteDataStore::defaultShouldUseCustomStoragePaths): 19 1 20 2022-03-28 Commit Queue <commit-queue@webkit.org> 2 21 -
trunk/Source/WebKit/FeatureFlags/WebKit-appletvos.plist
r291940 r292010 96 96 <dict> 97 97 <key>Enabled</key> 98 < false/>98 <true/> 99 99 </dict> 100 100 </dict> -
trunk/Source/WebKit/FeatureFlags/WebKit-ios.plist
r291940 r292010 96 96 <dict> 97 97 <key>Enabled</key> 98 < false/>98 <true/> 99 99 </dict> 100 100 </dict> -
trunk/Source/WebKit/FeatureFlags/WebKit-macos.plist
r291940 r292010 101 101 <dict> 102 102 <key>Enabled</key> 103 < false/>103 <true/> 104 104 </dict> 105 105 </dict> -
trunk/Source/WebKit/FeatureFlags/WebKit-watchos.plist
r291940 r292010 96 96 <dict> 97 97 <key>Enabled</key> 98 < false/>98 <true/> 99 99 </dict> 100 100 </dict> -
trunk/Source/WebKit/UIProcess/WebsiteData/Cocoa/WebsiteDataStoreCocoa.mm
r291940 r292010 94 94 #endif 95 95 96 static bool internalFeatureEnabled(const String& key, bool defaultValue = false) 97 { 98 auto defaultsKey = adoptNS([[NSString alloc] initWithFormat:@"InternalDebug%@", static_cast<NSString *>(key)]); 99 if ([[NSUserDefaults standardUserDefaults] objectForKey:defaultsKey.get()] != nil) 100 return [[NSUserDefaults standardUserDefaults] boolForKey:defaultsKey.get()]; 101 102 return defaultValue; 103 } 104 96 105 static bool experimentalFeatureEnabled(const String& key) 97 106 { … … 620 629 bool WebsiteDataStore::defaultShouldUseCustomStoragePaths() 621 630 { 622 static const bool useGeneralStorageDirectory = isFeatureFlagEnabled("general_directory_for_storage"_s);623 return ! useGeneralStorageDirectory;624 } 625 626 } 631 bool useGeneralDirectoryForStorageFeatureFlag = isFeatureFlagEnabled("general_directory_for_storage"_s, true); 632 return !internalFeatureEnabled(WebPreferencesKey::useGeneralDirectoryForStorageKey(), useGeneralDirectoryForStorageFeatureFlag); 633 } 634 635 }
Note:
See TracChangeset
for help on using the changeset viewer.