Title: [293449] trunk/Source
Revision
293449
Author
[email protected]
Date
2022-04-26 14:29:25 -0700 (Tue, 26 Apr 2022)

Log Message

Remove AriaReflectionEnabled runtime flag
https://bugs.webkit.org/show_bug.cgi?id=239532

Reviewed by Chris Fleizach.

Source/WebCore:

ARIA reflection shipped in Safari 12.1 (July 2019)
so it looks the runtime flag is not needed anymore.

* accessibility/AccessibilityRole.idl:
* accessibility/AriaAttributes.idl:
* page/RuntimeEnabledFeatures.h:
(WebCore::RuntimeEnabledFeatures::setAriaReflectionEnabled): Deleted.
(WebCore::RuntimeEnabledFeatures::ariaReflectionEnabled const): Deleted.

Source/WebKit:

* UIProcess/API/C/WKPreferences.cpp:
(WKPreferencesSetAriaReflectionEnabled): Deleted.
(WKPreferencesGetAriaReflectionEnabled): Deleted.
* UIProcess/API/C/WKPreferencesRefPrivate.h:

Source/WebKitLegacy/mac:

* WebView/WebPreferenceKeysPrivate.h:
* WebView/WebPreferences.mm:
(-[WebPreferences ariaReflectionEnabled]): Deleted.
(-[WebPreferences setAriaReflectionEnabled:]): Deleted.

Source/WTF:

* Scripts/Preferences/WebPreferencesInternal.yaml:

Modified Paths

Diff

Modified: trunk/Source/WTF/ChangeLog (293448 => 293449)


--- trunk/Source/WTF/ChangeLog	2022-04-26 21:24:20 UTC (rev 293448)
+++ trunk/Source/WTF/ChangeLog	2022-04-26 21:29:25 UTC (rev 293449)
@@ -1,3 +1,12 @@
+2022-04-26  Manuel Rego Casasnovas  <[email protected]>
+
+        Remove AriaReflectionEnabled runtime flag
+        https://bugs.webkit.org/show_bug.cgi?id=239532
+
+        Reviewed by Chris Fleizach.
+
+        * Scripts/Preferences/WebPreferencesInternal.yaml:
+
 2022-04-26  Kate Cheney  <[email protected]>
 
         Remove WebArchiveDebugMode

Modified: trunk/Source/WTF/Scripts/Preferences/WebPreferencesInternal.yaml (293448 => 293449)


--- trunk/Source/WTF/Scripts/Preferences/WebPreferencesInternal.yaml	2022-04-26 21:24:20 UTC (rev 293448)
+++ trunk/Source/WTF/Scripts/Preferences/WebPreferencesInternal.yaml	2022-04-26 21:29:25 UTC (rev 293449)
@@ -79,17 +79,6 @@
     WebCore:
       default: true
 
-AriaReflectionEnabled:
-  type: bool
-  humanReadableName: "ARIA Reflection"
-  humanReadableDescription: "ARIA Reflection support"
-  webcoreBinding: RuntimeEnabledFeatures
-  defaultValue:
-    WebKitLegacy:
-      default: true
-    WebKit:
-      default: true
-
 AsyncFrameScrollingEnabled:
   type: bool
   webcoreOnChange: setNeedsRelayoutAllFrames

Modified: trunk/Source/WebCore/ChangeLog (293448 => 293449)


--- trunk/Source/WebCore/ChangeLog	2022-04-26 21:24:20 UTC (rev 293448)
+++ trunk/Source/WebCore/ChangeLog	2022-04-26 21:29:25 UTC (rev 293449)
@@ -1,3 +1,19 @@
+2022-04-26  Manuel Rego Casasnovas  <[email protected]>
+
+        Remove AriaReflectionEnabled runtime flag
+        https://bugs.webkit.org/show_bug.cgi?id=239532
+
+        Reviewed by Chris Fleizach.
+
+        ARIA reflection shipped in Safari 12.1 (July 2019)
+        so it looks the runtime flag is not needed anymore.
+
+        * accessibility/AccessibilityRole.idl:
+        * accessibility/AriaAttributes.idl:
+        * page/RuntimeEnabledFeatures.h:
+        (WebCore::RuntimeEnabledFeatures::setAriaReflectionEnabled): Deleted.
+        (WebCore::RuntimeEnabledFeatures::ariaReflectionEnabled const): Deleted.
+
 2022-04-26  Ziran Sun  <[email protected]>
 
         Constructed FormData object should not contain an entry for the submit button that was used to submit the form

Modified: trunk/Source/WebCore/accessibility/AccessibilityRole.idl (293448 => 293449)


--- trunk/Source/WebCore/accessibility/AccessibilityRole.idl	2022-04-26 21:24:20 UTC (rev 293448)
+++ trunk/Source/WebCore/accessibility/AccessibilityRole.idl	2022-04-26 21:29:25 UTC (rev 293449)
@@ -24,8 +24,6 @@
  */
 
 // https://wicg.github.io/aom/spec/aria-reflection.html#AccessibilityRole
-[
-    EnabledAtRuntime=AriaReflectionEnabled
-] interface mixin AccessibilityRole {
+interface mixin AccessibilityRole {
     [Reflect] attribute [AtomString] DOMString? role;
 };

Modified: trunk/Source/WebCore/accessibility/AriaAttributes.idl (293448 => 293449)


--- trunk/Source/WebCore/accessibility/AriaAttributes.idl	2022-04-26 21:24:20 UTC (rev 293448)
+++ trunk/Source/WebCore/accessibility/AriaAttributes.idl	2022-04-26 21:29:25 UTC (rev 293449)
@@ -24,9 +24,7 @@
  */
 
 // https://wicg.github.io/aom/spec/aria-reflection.html#AriaAttributes
-[
-    EnabledAtRuntime=AriaReflectionEnabled,
-] interface mixin AriaAttributes {
+interface mixin AriaAttributes {
     [Reflect=aria_atomic]           attribute [AtomString] DOMString? ariaAtomic;
     [Reflect=aria_autocomplete]     attribute [AtomString] DOMString? ariaAutoComplete;
     [Reflect=aria_busy]             attribute [AtomString] DOMString? ariaBusy;

Modified: trunk/Source/WebCore/page/RuntimeEnabledFeatures.h (293448 => 293449)


--- trunk/Source/WebCore/page/RuntimeEnabledFeatures.h	2022-04-26 21:24:20 UTC (rev 293448)
+++ trunk/Source/WebCore/page/RuntimeEnabledFeatures.h	2022-04-26 21:29:25 UTC (rev 293449)
@@ -89,9 +89,6 @@
     void setAccessibilityObjectModelEnabled(bool isEnabled) { m_accessibilityObjectModelEnabled = isEnabled; }
     bool accessibilityObjectModelEnabled() const { return m_accessibilityObjectModelEnabled; }
 
-    void setAriaReflectionEnabled(bool isEnabled) { m_ariaReflectionEnabled = isEnabled; }
-    bool ariaReflectionEnabled() const { return m_ariaReflectionEnabled; }
-
     void setItpDebugModeEnabled(bool isEnabled) { m_itpDebugMode = isEnabled; }
     bool itpDebugModeEnabled() const { return m_itpDebugMode; }
 
@@ -287,7 +284,6 @@
     bool m_webXREnabled { false };
 #endif
     bool m_accessibilityObjectModelEnabled { false };
-    bool m_ariaReflectionEnabled { true };
     bool m_itpDebugMode { false };
     bool m_isRestrictedHTTPResponseAccess { true };
     bool m_isServerTimingEnabled { false };

Modified: trunk/Source/WebKit/ChangeLog (293448 => 293449)


--- trunk/Source/WebKit/ChangeLog	2022-04-26 21:24:20 UTC (rev 293448)
+++ trunk/Source/WebKit/ChangeLog	2022-04-26 21:29:25 UTC (rev 293449)
@@ -1,3 +1,15 @@
+2022-04-26  Manuel Rego Casasnovas  <[email protected]>
+
+        Remove AriaReflectionEnabled runtime flag
+        https://bugs.webkit.org/show_bug.cgi?id=239532
+
+        Reviewed by Chris Fleizach.
+
+        * UIProcess/API/C/WKPreferences.cpp:
+        (WKPreferencesSetAriaReflectionEnabled): Deleted.
+        (WKPreferencesGetAriaReflectionEnabled): Deleted.
+        * UIProcess/API/C/WKPreferencesRefPrivate.h:
+
 2022-04-26  Wenson Hsieh  <[email protected]>
 
         REGRESSION (r293117): Context menu lift animation encompasses the entire web view

Modified: trunk/Source/WebKit/UIProcess/API/C/WKPreferences.cpp (293448 => 293449)


--- trunk/Source/WebKit/UIProcess/API/C/WKPreferences.cpp	2022-04-26 21:24:20 UTC (rev 293448)
+++ trunk/Source/WebKit/UIProcess/API/C/WKPreferences.cpp	2022-04-26 21:29:25 UTC (rev 293449)
@@ -1845,16 +1845,6 @@
     return toImpl(preferencesRef)->accessibilityObjectModelEnabled();
 }
 
-void WKPreferencesSetAriaReflectionEnabled(WKPreferencesRef preferencesRef, bool flag)
-{
-    toImpl(preferencesRef)->setAriaReflectionEnabled(flag);
-}
-
-bool WKPreferencesGetAriaReflectionEnabled(WKPreferencesRef preferencesRef)
-{
-    return toImpl(preferencesRef)->ariaReflectionEnabled();
-}
-
 void WKPreferencesSetSyntheticEditingCommandsEnabled(WKPreferencesRef preferencesRef, bool flag)
 {
     toImpl(preferencesRef)->setSyntheticEditingCommandsEnabled(flag);

Modified: trunk/Source/WebKit/UIProcess/API/C/WKPreferencesRefPrivate.h (293448 => 293449)


--- trunk/Source/WebKit/UIProcess/API/C/WKPreferencesRefPrivate.h	2022-04-26 21:24:20 UTC (rev 293448)
+++ trunk/Source/WebKit/UIProcess/API/C/WKPreferencesRefPrivate.h	2022-04-26 21:29:25 UTC (rev 293449)
@@ -522,10 +522,6 @@
 WK_EXPORT void WKPreferencesSetAccessibilityObjectModelEnabled(WKPreferencesRef, bool flag);
 WK_EXPORT bool WKPreferencesGetAccessibilityObjectModelEnabled(WKPreferencesRef);
 
-// Defaults to true
-WK_EXPORT void WKPreferencesSetAriaReflectionEnabled(WKPreferencesRef, bool flag);
-WK_EXPORT bool WKPreferencesGetAriaReflectionEnabled(WKPreferencesRef);
-
 // Defaults to true.
 WK_EXPORT void WKPreferencesSetSyntheticEditingCommandsEnabled(WKPreferencesRef, bool);
 WK_EXPORT bool WKPreferencesGetSyntheticEditingCommandsEnabled(WKPreferencesRef);

Modified: trunk/Source/WebKitLegacy/mac/ChangeLog (293448 => 293449)


--- trunk/Source/WebKitLegacy/mac/ChangeLog	2022-04-26 21:24:20 UTC (rev 293448)
+++ trunk/Source/WebKitLegacy/mac/ChangeLog	2022-04-26 21:29:25 UTC (rev 293449)
@@ -1,3 +1,15 @@
+2022-04-26  Manuel Rego Casasnovas  <[email protected]>
+
+        Remove AriaReflectionEnabled runtime flag
+        https://bugs.webkit.org/show_bug.cgi?id=239532
+
+        Reviewed by Chris Fleizach.
+
+        * WebView/WebPreferenceKeysPrivate.h:
+        * WebView/WebPreferences.mm:
+        (-[WebPreferences ariaReflectionEnabled]): Deleted.
+        (-[WebPreferences setAriaReflectionEnabled:]): Deleted.
+
 2022-04-23  Wenson Hsieh  <[email protected]>
 
         Remove the `PreferInlineTextSelectionInImages` internal feature flag

Modified: trunk/Source/WebKitLegacy/mac/WebView/WebPreferenceKeysPrivate.h (293448 => 293449)


--- trunk/Source/WebKitLegacy/mac/WebView/WebPreferenceKeysPrivate.h	2022-04-26 21:24:20 UTC (rev 293448)
+++ trunk/Source/WebKitLegacy/mac/WebView/WebPreferenceKeysPrivate.h	2022-04-26 21:29:25 UTC (rev 293449)
@@ -239,7 +239,6 @@
 #define WebKitPictureInPictureAPIEnabledKey @"WebKitPictureInPictureAPIEnabled"
 #define WebKitAllowMediaContentTypesRequiringHardwareSupportAsFallbackKey @"WebKitAllowMediaContentTypesRequiringHardwareSupportAsFallback"
 #define WebKitInspectorAdditionsEnabledPreferenceKey @"WebKitInspectorAdditionsEnabled"
-#define WebKitAriaReflectionEnabledPreferenceKey @"WebKitAriaReflectionEnabled"
 #define WebKitMediaCapabilitiesEnabledPreferenceKey @"WebKitMediaCapabilitiesEnabled"
 #define WebKitCSSDisplayContentsAXSupportEnabledPreferenceKey @"WebKitCSSDisplayContentsAXSupportEnabled"
 #define WebKitCSSLogicalEnabledPreferenceKey @"WebKitCSSLogicalEnabled"

Modified: trunk/Source/WebKitLegacy/mac/WebView/WebPreferences.mm (293448 => 293449)


--- trunk/Source/WebKitLegacy/mac/WebView/WebPreferences.mm	2022-04-26 21:24:20 UTC (rev 293448)
+++ trunk/Source/WebKitLegacy/mac/WebView/WebPreferences.mm	2022-04-26 21:29:25 UTC (rev 293449)
@@ -2850,16 +2850,6 @@
     [self _setBoolValue:flag forKey:WebKitInspectorAdditionsEnabledPreferenceKey];
 }
 
-- (BOOL)ariaReflectionEnabled
-{
-    return [self _boolValueForKey:WebKitAriaReflectionEnabledPreferenceKey];
-}
-
-- (void)setAriaReflectionEnabled:(BOOL)flag
-{
-    [self _setBoolValue:flag forKey:WebKitAriaReflectionEnabledPreferenceKey];
-}
-
 - (BOOL)mediaCapabilitiesEnabled
 {
     return [self _boolValueForKey:WebKitMediaCapabilitiesEnabledPreferenceKey];

Modified: trunk/Source/WebKitLegacy/mac/WebView/WebPreferencesPrivate.h (293448 => 293449)


--- trunk/Source/WebKitLegacy/mac/WebView/WebPreferencesPrivate.h	2022-04-26 21:24:20 UTC (rev 293448)
+++ trunk/Source/WebKitLegacy/mac/WebView/WebPreferencesPrivate.h	2022-04-26 21:29:25 UTC (rev 293449)
@@ -250,7 +250,6 @@
 @property (nonatomic) BOOL punchOutWhiteBackgroundsInDarkMode;
 @property (nonatomic) BOOL inspectorAdditionsEnabled;
 @property (nonatomic) BOOL allowMediaContentTypesRequiringHardwareSupportAsFallback;
-@property (nonatomic) BOOL ariaReflectionEnabled;
 @property (nonatomic) BOOL mediaCapabilitiesEnabled;
 @property (nonatomic) BOOL sourceBufferChangeTypeEnabled;
 @property (nonatomic) NSString *mediaContentTypesRequiringHardwareSupport;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to