NEW237140
Support Direct Mode propagation of CFPreferences types other than AnyApp/CurUser/AnyHost
https://bugs.webkit.org/show_bug.cgi?id=237140
Summary Support Direct Mode propagation of CFPreferences types other than AnyApp/CurU...
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.