Bug 237140

Summary: Support Direct Mode propagation of CFPreferences types other than AnyApp/CurUser/AnyHost
Product: WebKit Reporter: Gavin <gavin.p>
Component: WebKit Process ModelAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   

Gavin
Reported 2022-02-24 08:55:17 PST
Currently CFPreferences Direct Mode propagation between WebKit constellation processes only supports AnyApp/CurUser/AnyHost preference types: void AuxiliaryProcess::setPreferenceValue(const String& domain, const String& key, id value) { if (domain.isEmpty()) { CFPreferencesSetValue(key.createCFString().get(), (__bridge CFPropertyListRef)value, kCFPreferencesAnyApplication, kCFPreferencesCurrentUser, kCFPreferencesAnyHost); #if ASSERT_ENABLED id valueAfterSetting = [[NSUserDefaults standardUserDefaults] objectForKey:key]; ASSERT(valueAfterSetting == value || [valueAfterSetting isEqual:value] || key == "AppleLanguages"); #endif } else CFPreferencesSetValue(key.createCFString().get(), (__bridge CFPropertyListRef)value, domain.createCFString().get(), kCFPreferencesCurrentUser, kCFPreferencesAnyHost); } We should support propagation of other preference types too, for example CurrentHost.
Attachments
Radar WebKit Bug Importer
Comment 1 2022-03-03 08:56:16 PST
Note You need to log in before you can comment on or make changes to this bug.