commit 957e11b3c232632ec0e781b5d765c3000bcd1fb4
Author: Joanmarie Diggs <jdiggs@igalia.com>
Date:   Tue May 17 12:21:11 2022 +0200

    Handle WebKitGtk's change in toolkit name casing
    
    WebKitGtk objects now expose the toolkit name as WebKitGTK. Our
    script mapping for toolkits should probably not be case sensitive.
    For the purpose of making newer releases of WebKitGtk still work
    with older, stable versions of Orca, this commit just handles
    the alternative casing for WebKitGtk.
    
    Note that in some cases (e.g. Yelp), native caret navigation via
    F7 does not seem to be reliably toggled. That is a feature of either
    the app or the toolkit; not of Orca. This commit does not impact that.
    
    See issue #244

---
 src/orca/script_manager.py                              |    3 +++
 src/orca/scripts/toolkits/WebKitGtk/script_utilities.py |    2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

--- a/src/orca/script_manager.py
+++ b/src/orca/script_manager.py
@@ -56,6 +56,8 @@ class ScriptManager:
              'mate-notification-daemon': 'notification-daemon',
              'pluma':            'gedit',
             }
+        self._toolkitNames = \
+            {'WebKitGTK': 'WebKitGtk'}
 
         self.setActiveScript(None, "__init__")
         self._desktop = pyatspi.Registry.getDesktop(0)
@@ -130,6 +132,7 @@ class ScriptManager:
             else:
                 attrs = dict([attr.split(':', 1) for attr in attributes])
                 name = attrs.get('toolkit', '')
+                name = self._toolkitNames.get(name, name)
 
         return name
 
--- a/src/orca/scripts/toolkits/WebKitGtk/script_utilities.py
+++ b/src/orca/scripts/toolkits/WebKitGtk/script_utilities.py
@@ -61,7 +61,7 @@ class Utilities(script_utilities.Utiliti
             attrs = dict([attr.split(':', 1) for attr in obj.getAttributes()])
         except:
             return False
-        return attrs.get('toolkit', '') == 'WebKitGtk'
+        return attrs.get('toolkit', '') in ['WebKitGtk', 'WebKitGTK']
 
     def getCaretContext(self):
         # TODO - JD: This is private, but it's only here temporarily until we
