Diff
Modified: trunk/Source/WTF/ChangeLog (288796 => 288797)
--- trunk/Source/WTF/ChangeLog 2022-01-30 05:21:33 UTC (rev 288796)
+++ trunk/Source/WTF/ChangeLog 2022-01-30 05:58:37 UTC (rev 288797)
@@ -1,3 +1,12 @@
+2022-01-29 Ryosuke Niwa <[email protected]>
+
+ Delete runtime preference for enabling request animation frame
+ https://bugs.webkit.org/show_bug.cgi?id=235866
+
+ Reviewed by Darin Adler.
+
+ * Scripts/Preferences/WebPreferences.yaml:
+
2022-01-28 Chris Dumez <[email protected]>
ASSERTION FAILED: m_processCallback in WebCore::AudioWorkletProcessor::process
Modified: trunk/Source/WTF/Scripts/Preferences/WebPreferences.yaml (288796 => 288797)
--- trunk/Source/WTF/Scripts/Preferences/WebPreferences.yaml 2022-01-30 05:21:33 UTC (rev 288796)
+++ trunk/Source/WTF/Scripts/Preferences/WebPreferences.yaml 2022-01-30 05:58:37 UTC (rev 288797)
@@ -1770,16 +1770,6 @@
WebCore:
default: false
-RequestAnimationFrameEnabled:
- type: bool
- defaultValue:
- WebKitLegacy:
- default: true
- WebKit:
- default: true
- WebCore:
- default: true
-
RequiresPageVisibilityToPlayAudio:
type: bool
defaultValue:
Modified: trunk/Source/WebCore/ChangeLog (288796 => 288797)
--- trunk/Source/WebCore/ChangeLog 2022-01-30 05:21:33 UTC (rev 288796)
+++ trunk/Source/WebCore/ChangeLog 2022-01-30 05:58:37 UTC (rev 288797)
@@ -1,3 +1,20 @@
+2022-01-29 Ryosuke Niwa <[email protected]>
+
+ Delete runtime preference for enabling request animation frame
+ https://bugs.webkit.org/show_bug.cgi?id=235866
+
+ Reviewed by Darin Adler.
+
+ * dom/ScriptedAnimationController.cpp:
+ (WebCore::ScriptedAnimationController::serviceRequestAnimationFrameCallbacks):
+ (WebCore::ScriptedAnimationController::scheduleAnimation):
+ (WebCore::ScriptedAnimationController::requestAnimationFrameEnabled const): Deleted.
+ * dom/ScriptedAnimationController.h:
+ (WebCore::ScriptedAnimationController::clearDocumentPointer):
+ * workers/WorkerAnimationController.cpp:
+ (WebCore::WorkerAnimationController::scheduleAnimation):
+ (WebCore::WorkerAnimationController::serviceRequestAnimationFrameCallbacks):
+
2022-01-29 Alexey Shvayka <[email protected]>
[WebIDL] Add a sensible error message for a primitive non-null EventListener
Modified: trunk/Source/WebCore/dom/ScriptedAnimationController.cpp (288796 => 288797)
--- trunk/Source/WebCore/dom/ScriptedAnimationController.cpp 2022-01-30 05:21:33 UTC (rev 288796)
+++ trunk/Source/WebCore/dom/ScriptedAnimationController.cpp 2022-01-30 05:58:37 UTC (rev 288797)
@@ -46,11 +46,6 @@
ScriptedAnimationController::~ScriptedAnimationController() = default;
-bool ScriptedAnimationController::requestAnimationFrameEnabled() const
-{
- return m_document && m_document->settings().requestAnimationFrameEnabled();
-}
-
void ScriptedAnimationController::suspend()
{
++m_suspendCount;
@@ -139,7 +134,7 @@
void ScriptedAnimationController::serviceRequestAnimationFrameCallbacks(ReducedResolutionSeconds timestamp)
{
- if (!m_callbackDataList.size() || m_suspendCount || !requestAnimationFrameEnabled())
+ if (!m_callbackDataList.size() || m_suspendCount)
return;
if (shouldRescheduleRequestAnimationFrame(timestamp)) {
@@ -192,9 +187,6 @@
void ScriptedAnimationController::scheduleAnimation()
{
- if (!requestAnimationFrameEnabled())
- return;
-
if (auto* page = this->page())
page->scheduleRenderingUpdate(RenderingUpdateStep::AnimationFrameCallbacks);
}
Modified: trunk/Source/WebCore/dom/ScriptedAnimationController.h (288796 => 288797)
--- trunk/Source/WebCore/dom/ScriptedAnimationController.h 2022-01-30 05:21:33 UTC (rev 288796)
+++ trunk/Source/WebCore/dom/ScriptedAnimationController.h 2022-01-30 05:58:37 UTC (rev 288797)
@@ -50,7 +50,6 @@
}
~ScriptedAnimationController();
void clearDocumentPointer() { m_document = nullptr; }
- bool requestAnimationFrameEnabled() const;
WEBCORE_EXPORT Seconds interval() const;
WEBCORE_EXPORT OptionSet<ThrottlingReason> throttlingReasons() const;
Modified: trunk/Source/WebCore/workers/WorkerAnimationController.cpp (288796 => 288797)
--- trunk/Source/WebCore/workers/WorkerAnimationController.cpp 2022-01-30 05:21:33 UTC (rev 288796)
+++ trunk/Source/WebCore/workers/WorkerAnimationController.cpp 2022-01-30 05:58:37 UTC (rev 288797)
@@ -112,9 +112,6 @@
void WorkerAnimationController::scheduleAnimation()
{
- if (!m_workerGlobalScope.settingsValues().requestAnimationFrameEnabled)
- return;
-
if (m_animationTimer.isActive())
return;
@@ -132,7 +129,7 @@
void WorkerAnimationController::serviceRequestAnimationFrameCallbacks(DOMHighResTimeStamp timestamp)
{
- if (!m_animationCallbacks.size() || !m_workerGlobalScope.settingsValues().requestAnimationFrameEnabled)
+ if (!m_animationCallbacks.size())
return;
// First, generate a list of callbacks to consider. Callbacks registered from this point
Modified: trunk/Source/WebKit/ChangeLog (288796 => 288797)
--- trunk/Source/WebKit/ChangeLog 2022-01-30 05:21:33 UTC (rev 288796)
+++ trunk/Source/WebKit/ChangeLog 2022-01-30 05:58:37 UTC (rev 288797)
@@ -1,3 +1,19 @@
+2022-01-29 Ryosuke Niwa <[email protected]>
+
+ Delete runtime preference for enabling request animation frame
+ https://bugs.webkit.org/show_bug.cgi?id=235866
+
+ Reviewed by Darin Adler.
+
+ * UIProcess/API/C/WKPreferences.cpp:
+ (WKPreferencesSetRequestAnimationFrameEnabled):
+ (WKPreferencesGetRequestAnimationFrameEnabled):
+ * UIProcess/API/C/WKPreferencesRefPrivate.h:
+ * UIProcess/API/Cocoa/WKPreferences.mm:
+ (-[WKPreferences _setRequestAnimationFrameEnabled:]):
+ (-[WKPreferences _requestAnimationFrameEnabled]):
+ * UIProcess/API/Cocoa/WKPreferencesPrivate.h:
+
2022-01-28 Fujii Hironori <[email protected]>
[WinCairo] WebKitTestRunner should support pixel dump for accelerated compositing mode
Modified: trunk/Source/WebKit/UIProcess/API/C/WKPreferences.cpp (288796 => 288797)
--- trunk/Source/WebKit/UIProcess/API/C/WKPreferences.cpp 2022-01-30 05:21:33 UTC (rev 288796)
+++ trunk/Source/WebKit/UIProcess/API/C/WKPreferences.cpp 2022-01-30 05:58:37 UTC (rev 288797)
@@ -974,14 +974,13 @@
return toImpl(preferencesRef)->shouldRespectImageOrientation();
}
-void WKPreferencesSetRequestAnimationFrameEnabled(WKPreferencesRef preferencesRef, bool flag)
+void WKPreferencesSetRequestAnimationFrameEnabled(WKPreferencesRef, bool)
{
- toImpl(preferencesRef)->setRequestAnimationFrameEnabled(flag);
}
-bool WKPreferencesGetRequestAnimationFrameEnabled(WKPreferencesRef preferencesRef)
+bool WKPreferencesGetRequestAnimationFrameEnabled(WKPreferencesRef)
{
- return toImpl(preferencesRef)->requestAnimationFrameEnabled();
+ return true;
}
void WKPreferencesSetStorageBlockingPolicy(WKPreferencesRef preferencesRef, WKStorageBlockingPolicy policy)
Modified: trunk/Source/WebKit/UIProcess/API/C/WKPreferencesRefPrivate.h (288796 => 288797)
--- trunk/Source/WebKit/UIProcess/API/C/WKPreferencesRefPrivate.h 2022-01-30 05:21:33 UTC (rev 288796)
+++ trunk/Source/WebKit/UIProcess/API/C/WKPreferencesRefPrivate.h 2022-01-30 05:58:37 UTC (rev 288797)
@@ -215,10 +215,6 @@
WK_EXPORT void WKPreferencesSetJavaEnabledForLocalFiles(WKPreferencesRef preferences, bool javaEnabled);
WK_EXPORT bool WKPreferencesGetJavaEnabledForLocalFiles(WKPreferencesRef preferences);
-// Defaults to true.
-WK_EXPORT void WKPreferencesSetRequestAnimationFrameEnabled(WKPreferencesRef, bool);
-WK_EXPORT bool WKPreferencesGetRequestAnimationFrameEnabled(WKPreferencesRef);
-
// Defaults to false
WK_EXPORT void WKPreferencesSetDiagnosticLoggingEnabled(WKPreferencesRef preferencesRef, bool enabled);
WK_EXPORT bool WKPreferencesGetDiagnosticLoggingEnabled(WKPreferencesRef preferencesRef);
@@ -573,6 +569,8 @@
// The following are all deprecated and do nothing. They should be removed when possible.
+WK_EXPORT void WKPreferencesSetRequestAnimationFrameEnabled(WKPreferencesRef, bool) WK_C_API_DEPRECATED;
+WK_EXPORT bool WKPreferencesGetRequestAnimationFrameEnabled(WKPreferencesRef) WK_C_API_DEPRECATED;
WK_EXPORT void WKPreferencesSetNewBlockInsideInlineModelEnabled(WKPreferencesRef, bool) WK_C_API_DEPRECATED;
WK_EXPORT bool WKPreferencesGetNewBlockInsideInlineModelEnabled(WKPreferencesRef) WK_C_API_DEPRECATED;
WK_EXPORT void WKPreferencesSetLongMousePressEnabled(WKPreferencesRef, bool) WK_C_API_DEPRECATED;
Modified: trunk/Source/WebKit/UIProcess/API/Cocoa/WKPreferences.mm (288796 => 288797)
--- trunk/Source/WebKit/UIProcess/API/Cocoa/WKPreferences.mm 2022-01-30 05:21:33 UTC (rev 288796)
+++ trunk/Source/WebKit/UIProcess/API/Cocoa/WKPreferences.mm 2022-01-30 05:58:37 UTC (rev 288797)
@@ -943,16 +943,6 @@
return _preferences->acceleratedCompositingEnabled();
}
-- (void)_setRequestAnimationFrameEnabled:(BOOL)enabled
-{
- _preferences->setRequestAnimationFrameEnabled(enabled);
-}
-
-- (BOOL)_requestAnimationFrameEnabled
-{
- return _preferences->requestAnimationFrameEnabled();
-}
-
- (BOOL)_remotePlaybackEnabled
{
return _preferences->remotePlaybackEnabled();
@@ -1633,6 +1623,15 @@
@implementation WKPreferences (WKPrivateDeprecated)
+- (void)_setRequestAnimationFrameEnabled:(BOOL)enabled
+{
+}
+
+- (BOOL)_requestAnimationFrameEnabled
+{
+ return YES;
+}
+
#if !TARGET_OS_IPHONE
- (void)_setSubpixelCSSOMElementMetricsEnabled:(BOOL)enabled
Modified: trunk/Source/WebKit/UIProcess/API/Cocoa/WKPreferencesPrivate.h (288796 => 288797)
--- trunk/Source/WebKit/UIProcess/API/Cocoa/WKPreferencesPrivate.h 2022-01-30 05:21:33 UTC (rev 288796)
+++ trunk/Source/WebKit/UIProcess/API/Cocoa/WKPreferencesPrivate.h 2022-01-30 05:58:37 UTC (rev 288797)
@@ -166,7 +166,6 @@
@property (nonatomic, setter=_setRemotePlaybackEnabled:) BOOL _remotePlaybackEnabled WK_API_AVAILABLE(macos(10.15.4), ios(13.4));
@property (nonatomic, setter=_setWebAudioEnabled:) BOOL _webAudioEnabled WK_API_AVAILABLE(macos(10.14), ios(13.4));
@property (nonatomic, setter=_setAcceleratedCompositingEnabled:) BOOL _acceleratedCompositingEnabled WK_API_AVAILABLE(macos(10.13.4), ios(13.4));
-@property (nonatomic, setter=_setRequestAnimationFrameEnabled:) BOOL _requestAnimationFrameEnabled WK_API_AVAILABLE(macos(10.15.4), ios(13.4));
@property (nonatomic, setter=_setServiceWorkerEntitlementDisabledForTesting:) BOOL _serviceWorkerEntitlementDisabledForTesting WK_API_AVAILABLE(macos(11.0), ios(14.0));
@property (nonatomic, setter=_setAccessibilityIsolatedTreeEnabled:) BOOL _accessibilityIsolatedTreeEnabled WK_API_AVAILABLE(macos(10.16));
@property (nonatomic, setter=_setSpeechRecognitionEnabled:) BOOL _speechRecognitionEnabled WK_API_AVAILABLE(macos(12.0), ios(15.0));
@@ -230,6 +229,7 @@
@interface WKPreferences (WKPrivateDeprecated)
+@property (nonatomic, setter=_setRequestAnimationFrameEnabled:) BOOL _requestAnimationFrameEnabled WK_API_DEPRECATED("requestAnimationFrame is always enabled", macos(10.15.4, WK_MAC_TBA), ios(13.4, WK_IOS_TBA));
#if !TARGET_OS_IPHONE
@property (nonatomic, setter=_setSubpixelCSSOMElementMetricsEnabled:) BOOL _subpixelCSSOMElementMetricsEnabled WK_API_DEPRECATED("Subpixel CSSOM element metrics are no longer supported", macos(10.13.4, 10.15));
#endif
Modified: trunk/Source/WebKitLegacy/mac/ChangeLog (288796 => 288797)
--- trunk/Source/WebKitLegacy/mac/ChangeLog 2022-01-30 05:21:33 UTC (rev 288796)
+++ trunk/Source/WebKitLegacy/mac/ChangeLog 2022-01-30 05:58:37 UTC (rev 288797)
@@ -1,3 +1,15 @@
+2022-01-29 Ryosuke Niwa <[email protected]>
+
+ Delete runtime preference for enabling request animation frame
+ https://bugs.webkit.org/show_bug.cgi?id=235866
+
+ Reviewed by Darin Adler.
+
+ * WebView/WebPreferences.mm:
+ (-[WebPreferences requestAnimationFrameEnabled]):
+ (-[WebPreferences setRequestAnimationFrameEnabled:]):
+ * WebView/WebPreferencesPrivate.h:
+
2022-01-28 Michael Saboff <[email protected]>
Catalyst builds for WebCore and WebKitLegacy don't create proper symlinks for builds with system content path
Modified: trunk/Source/WebKitLegacy/mac/WebView/WebPreferences.mm (288796 => 288797)
--- trunk/Source/WebKitLegacy/mac/WebView/WebPreferences.mm 2022-01-30 05:21:33 UTC (rev 288796)
+++ trunk/Source/WebKitLegacy/mac/WebView/WebPreferences.mm 2022-01-30 05:58:37 UTC (rev 288797)
@@ -2351,16 +2351,6 @@
return [self _boolValueForKey:WebKitShouldRespectImageOrientationKey];
}
-- (BOOL)requestAnimationFrameEnabled
-{
- return [self _boolValueForKey:WebKitRequestAnimationFrameEnabledPreferenceKey];
-}
-
-- (void)setRequestAnimationFrameEnabled:(BOOL)enabled
-{
- [self _setBoolValue:enabled forKey:WebKitRequestAnimationFrameEnabledPreferenceKey];
-}
-
- (void)setIncrementalRenderingSuppressionTimeoutInSeconds:(NSTimeInterval)timeout
{
[self _setFloatValue:timeout forKey:WebKitIncrementalRenderingSuppressionTimeoutInSecondsKey];
@@ -3385,6 +3375,15 @@
return YES;
}
+- (BOOL)requestAnimationFrameEnabled
+{
+ return YES;
+}
+
+- (void)setRequestAnimationFrameEnabled:(BOOL)enabled
+{
+}
+
- (void)setResourceTimingEnabled:(BOOL)flag
{
}
Modified: trunk/Source/WebKitLegacy/mac/WebView/WebPreferencesPrivate.h (288796 => 288797)
--- trunk/Source/WebKitLegacy/mac/WebView/WebPreferencesPrivate.h 2022-01-30 05:21:33 UTC (rev 288796)
+++ trunk/Source/WebKitLegacy/mac/WebView/WebPreferencesPrivate.h 2022-01-30 05:58:37 UTC (rev 288797)
@@ -197,7 +197,6 @@
@property (nonatomic) BOOL shouldDisplayTextDescriptions;
@property (nonatomic) BOOL notificationsEnabled;
@property (nonatomic) BOOL shouldRespectImageOrientation;
-@property (nonatomic) BOOL requestAnimationFrameEnabled;
@property (nonatomic) NSTimeInterval incrementalRenderingSuppressionTimeoutInSeconds;
@property (nonatomic, readonly) NSTimeInterval _backForwardCacheExpirationInterval;
@property (nonatomic) BOOL diagnosticLoggingEnabled;
@@ -364,6 +363,7 @@
@property (nonatomic) BOOL subpixelCSSOMElementMetricsEnabled;
@property (nonatomic) BOOL userTimingEnabled;
+@property (nonatomic) BOOL requestAnimationFrameEnabled;
@property (nonatomic) BOOL resourceTimingEnabled;
@property (nonatomic, getter=cssShadowPartsEnabled) BOOL CSSShadowPartsEnabled;
@property (nonatomic) BOOL isSecureContextAttributeEnabled;
Modified: trunk/Source/WebKitLegacy/win/ChangeLog (288796 => 288797)
--- trunk/Source/WebKitLegacy/win/ChangeLog 2022-01-30 05:21:33 UTC (rev 288796)
+++ trunk/Source/WebKitLegacy/win/ChangeLog 2022-01-30 05:58:37 UTC (rev 288797)
@@ -1,3 +1,18 @@
+2022-01-29 Ryosuke Niwa <[email protected]>
+
+ Delete runtime preference for enabling request animation frame
+ https://bugs.webkit.org/show_bug.cgi?id=235866
+
+ Reviewed by Darin Adler.
+
+ * WebPreferences.cpp:
+ (WebPreferences::initializeDefaultSettings):
+ (WebPreferences::setRequestAnimationFrameEnabled):
+ (WebPreferences::requestAnimationFrameEnabled):
+ * WebPreferences.h:
+ * WebView.cpp:
+ (WebView::notifyPreferencesChanged):
+
2022-01-25 Aditya Keerthi <[email protected]>
Disable input-security CSS property
Modified: trunk/Source/WebKitLegacy/win/WebPreferences.cpp (288796 => 288797)
--- trunk/Source/WebKitLegacy/win/WebPreferences.cpp 2022-01-30 05:21:33 UTC (rev 288796)
+++ trunk/Source/WebKitLegacy/win/WebPreferences.cpp 2022-01-30 05:58:37 UTC (rev 288797)
@@ -322,8 +322,6 @@
CFDictionaryAddValue(defaults.get(), CFSTR(WebKitMediaPlaybackRequiresUserGesturePreferenceKey), kCFBooleanFalse);
CFDictionaryAddValue(defaults.get(), CFSTR(WebKitMediaPlaybackAllowsInlinePreferenceKey), kCFBooleanTrue);
- CFDictionaryAddValue(defaults.get(), CFSTR(WebKitRequestAnimationFrameEnabledPreferenceKey), kCFBooleanTrue);
-
CFDictionaryAddValue(defaults.get(), CFSTR(WebKitFullScreenEnabledPreferenceKey), kCFBooleanFalse);
CFDictionaryAddValue(defaults.get(), CFSTR(WebKitRequestAnimationFrameEnabledPreferenceKey), kCFBooleanFalse);
@@ -2006,9 +2004,8 @@
#endif
}
-HRESULT WebPreferences::setRequestAnimationFrameEnabled(BOOL enabled)
+HRESULT WebPreferences::setRequestAnimationFrameEnabled(BOOL)
{
- setBoolValue(WebKitRequestAnimationFrameEnabledPreferenceKey, enabled);
return S_OK;
}
@@ -2016,7 +2013,7 @@
{
if (!enabled)
return E_POINTER;
- *enabled = boolValueForKey(WebKitRequestAnimationFrameEnabledPreferenceKey);
+ *enabled = true;
return S_OK;
}
Modified: trunk/Source/WebKitLegacy/win/WebPreferences.h (288796 => 288797)
--- trunk/Source/WebKitLegacy/win/WebPreferences.h 2022-01-30 05:21:33 UTC (rev 288796)
+++ trunk/Source/WebKitLegacy/win/WebPreferences.h 2022-01-30 05:58:37 UTC (rev 288797)
@@ -206,13 +206,13 @@
virtual HRESULT STDMETHODCALLTYPE setShowsToolTipOverTruncatedText(BOOL);
virtual HRESULT STDMETHODCALLTYPE shouldInvertColors(_Out_ BOOL*);
virtual HRESULT STDMETHODCALLTYPE setShouldInvertColors(BOOL);
- virtual HRESULT STDMETHODCALLTYPE requestAnimationFrameEnabled(_Out_ BOOL*);
- virtual HRESULT STDMETHODCALLTYPE setRequestAnimationFrameEnabled(BOOL);
virtual HRESULT STDMETHODCALLTYPE mockScrollbarsEnabled(_Out_ BOOL*);
virtual HRESULT STDMETHODCALLTYPE setMockScrollbarsEnabled(BOOL);
- // These two methods are no-ops, and only retained to keep
+ // These methods are no-ops, and only retained to keep
// the Interface consistent. DO NOT USE THEM.
+ virtual HRESULT STDMETHODCALLTYPE requestAnimationFrameEnabled(_Out_ BOOL*);
+ virtual HRESULT STDMETHODCALLTYPE setRequestAnimationFrameEnabled(BOOL);
virtual HRESULT STDMETHODCALLTYPE screenFontSubstitutionEnabled(_Out_ BOOL*);
virtual HRESULT STDMETHODCALLTYPE setScreenFontSubstitutionEnabled(BOOL);
Modified: trunk/Source/WebKitLegacy/win/WebView.cpp (288796 => 288797)
--- trunk/Source/WebKitLegacy/win/WebView.cpp 2022-01-30 05:21:33 UTC (rev 288796)
+++ trunk/Source/WebKitLegacy/win/WebView.cpp 2022-01-30 05:58:37 UTC (rev 288797)
@@ -5370,11 +5370,6 @@
return hr;
setShouldInvertColors(enabled);
- hr = prefsPrivate->requestAnimationFrameEnabled(&enabled);
- if (FAILED(hr))
- return hr;
- settings.setRequestAnimationFrameEnabled(enabled);
-
hr = prefsPrivate->mockScrollbarsEnabled(&enabled);
if (FAILED(hr))
return hr;