[webkit-changes] [WebKit/WebKit] 68677a: AX: Cache the ProcessID in the AXIsolatedTree so t...

AndresGonzalezApple noreply at github.com
Mon Aug 7 13:46:22 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 68677a255c209461a198b13e8bb4e3be15fcada2
      https://github.com/WebKit/WebKit/commit/68677a255c209461a198b13e8bb4e3be15fcada2
  Author: Andres Gonzalez <andresg_22 at apple.com>
  Date:   2023-08-07 (Mon, 07 Aug 2023)

  Changed paths:
    M Source/WebCore/accessibility/AccessibilityObject.cpp
    M Source/WebCore/accessibility/AccessibilityObject.h
    M Source/WebCore/accessibility/AccessibilityObjectInterface.h
    M Source/WebCore/accessibility/isolatedtree/AXIsolatedObject.h
    M Source/WebCore/accessibility/isolatedtree/AXIsolatedTree.h
    M Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm

  Log Message:
  -----------
  AX: Cache the ProcessID in the AXIsolatedTree so that it can be retrieved off the main thread.
https://bugs.webkit.org/show_bug.cgi?id=259832
<rdar://problem/113407757>

Reviewed by Tyler Wilcock.

The [WebAccessibilityObjectWrapper accessibilityPresenterProcessIdentifier] method was calling WebCore::presentingApplicationPID() that cannot be called off the main thread. This patch fixes this by caching the ProcessID in the AXIsolatedTree, so that it can be retrieved off the main thread.

* Source/WebCore/accessibility/AccessibilityObject.cpp:
(WebCore::AccessibilityObject::processID const):
* Source/WebCore/accessibility/AccessibilityObject.h:
* Source/WebCore/accessibility/AccessibilityObjectInterface.h:
* Source/WebCore/accessibility/isolatedtree/AXIsolatedObject.h:
* Source/WebCore/accessibility/isolatedtree/AXIsolatedTree.h:
(WebCore::AXIsolatedTree::processID const):
* Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
(-[WebAccessibilityObjectWrapper accessibilityPresenterProcessIdentifier]):

* Source/WebCore/accessibility/isolatedtree/AXIsolatedTree.h:
(WebCore::AXIsolatedTree::processID const):

Canonical link: https://commits.webkit.org/266654@main




More information about the webkit-changes mailing list