Diff
Modified: trunk/Source/WTF/ChangeLog (287371 => 287372)
--- trunk/Source/WTF/ChangeLog 2021-12-22 22:23:51 UTC (rev 287371)
+++ trunk/Source/WTF/ChangeLog 2021-12-22 22:32:22 UTC (rev 287372)
@@ -1,3 +1,17 @@
+2021-12-22 Commit Queue <[email protected]>
+
+ Unreviewed, reverting r287364.
+ https://bugs.webkit.org/show_bug.cgi?id=234620
+
+ broke 3 API tests
+
+ Reverted changeset:
+
+ "Preferences that read from NSUserDefaults need to be
+ initialied from platformInitializeStore()"
+ https://bugs.webkit.org/show_bug.cgi?id=234488
+ https://commits.webkit.org/r287364
+
2021-12-22 Zan Dobersek <[email protected]>
[RISCV64] Add RISCV64 support in YARR
Modified: trunk/Source/WTF/Scripts/Preferences/WebPreferences.yaml (287371 => 287372)
--- trunk/Source/WTF/Scripts/Preferences/WebPreferences.yaml 2021-12-22 22:23:51 UTC (rev 287371)
+++ trunk/Source/WTF/Scripts/Preferences/WebPreferences.yaml 2021-12-22 22:32:22 UTC (rev 287372)
@@ -1893,7 +1893,7 @@
"PLATFORM(GTK) || PLATFORM(WPE)": true
default: false
WebKit:
- # PLATFORM(MAC) initializes the value in initializeProcessStateDependentPreferences
+ "PLATFORM(MAC)": WebKit::defaultScrollAnimatorEnabled()
"PLATFORM(GTK) || PLATFORM(WPE)": true
default: false
WebCore:
Modified: trunk/Source/WebKit/ChangeLog (287371 => 287372)
--- trunk/Source/WebKit/ChangeLog 2021-12-22 22:23:51 UTC (rev 287371)
+++ trunk/Source/WebKit/ChangeLog 2021-12-22 22:32:22 UTC (rev 287372)
@@ -1,3 +1,17 @@
+2021-12-22 Commit Queue <[email protected]>
+
+ Unreviewed, reverting r287364.
+ https://bugs.webkit.org/show_bug.cgi?id=234620
+
+ broke 3 API tests
+
+ Reverted changeset:
+
+ "Preferences that read from NSUserDefaults need to be
+ initialied from platformInitializeStore()"
+ https://bugs.webkit.org/show_bug.cgi?id=234488
+ https://commits.webkit.org/r287364
+
2021-12-22 Kate Cheney <[email protected]>
PCM tests crashing with 'unlink' errors
Modified: trunk/Source/WebKit/UIProcess/Cocoa/WebPreferencesCocoa.mm (287371 => 287372)
--- trunk/Source/WebKit/UIProcess/Cocoa/WebPreferencesCocoa.mm 2021-12-22 22:23:51 UTC (rev 287371)
+++ trunk/Source/WebKit/UIProcess/Cocoa/WebPreferencesCocoa.mm 2021-12-22 22:32:22 UTC (rev 287372)
@@ -140,27 +140,18 @@
store.setUInt32ValueForKey(key, [object unsignedIntegerValue]);
}
-void WebPreferences::initializeProcessStateDependentPreferences()
+void WebPreferences::platformInitializeStore()
{
+ @autoreleasepool {
#if ENABLE(MEDIA_STREAM)
- // NOTE: This is set here, and does not set the default using the 'defaultValue' mechanism, because the
- // 'defaultValue' must be the same in both the UIProcess and WebProcess, which may not be true for audio
- // and video capture state as the WebProcess is not entitled to use the camera or microphone by default.
- // If other preferences need to dynamically set the initial value based on host app state, we should extended
- // the declarative format rather than adding more special cases here.
- m_store.setBoolValueForKey(WebPreferencesKey::mediaDevicesEnabledKey(), UserMediaPermissionRequestManagerProxy::permittedToCaptureAudio() || UserMediaPermissionRequestManagerProxy::permittedToCaptureVideo());
+ // NOTE: This is set here, and does not setting the default using the 'defaultValue' mechanism, because the
+ // 'defaultValue' must be the same in both the UIProcess and WebProcess, which may not be true for audio
+ // and video capture state as the WebProcess is not entitled to use the camera or microphone by default.
+ // If other preferences need to dynamically set the initial value based on host app state, we should extended
+ // the declarative format rather than adding more special cases here.
+ m_store.setBoolValueForKey(WebPreferencesKey::mediaDevicesEnabledKey(), UserMediaPermissionRequestManagerProxy::permittedToCaptureAudio() || UserMediaPermissionRequestManagerProxy::permittedToCaptureVideo());
#endif
-#if PLATFORM(MAC)
- m_store.setBoolValueForKey(WebPreferencesKey::scrollAnimatorEnabledKey(), [[NSUserDefaults standardUserDefaults] boolForKey:@"NSScrollAnimationEnabled"]);
-#endif
-}
-
-void WebPreferences::platformInitializeStore()
-{
- @autoreleasepool {
- initializeProcessStateDependentPreferences();
-
#define INITIALIZE_DEBUG_PREFERENCE_FROM_NSUSERDEFAULTS(KeyUpper, KeyLower, TypeName, Type, DefaultValue, HumanReadableName, HumanReadableDescription) \
setDebug##TypeName##ValueIfInUserDefaults(m_identifier, m_keyPrefix, m_globalDebugKeyPrefix, WebPreferencesKey::KeyLower##Key(), m_store);
Modified: trunk/Source/WebKit/UIProcess/WebPreferences.cpp (287371 => 287372)
--- trunk/Source/WebKit/UIProcess/WebPreferences.cpp 2021-12-22 22:23:51 UTC (rev 287371)
+++ trunk/Source/WebKit/UIProcess/WebPreferences.cpp 2021-12-22 22:32:22 UTC (rev 287372)
@@ -228,10 +228,6 @@
#endif
#if !PLATFORM(COCOA)
-void WebPreferences::initializeProcessStateDependentPreferences()
-{
-}
-
void WebPreferences::platformUpdateStringValueForKey(const String&, const String&)
{
notImplemented();
Modified: trunk/Source/WebKit/UIProcess/WebPreferences.h (287371 => 287372)
--- trunk/Source/WebKit/UIProcess/WebPreferences.h 2021-12-22 22:23:51 UTC (rev 287371)
+++ trunk/Source/WebKit/UIProcess/WebPreferences.h 2021-12-22 22:32:22 UTC (rev 287372)
@@ -89,7 +89,6 @@
private:
void platformInitializeStore();
- void initializeProcessStateDependentPreferences();
void update();