⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 259834 in webkit


Ignore:
Timestamp:
Apr 9, 2020, 3:17:29 PM (6 years ago)
Author:
Andres Gonzalez
Message:

WKAccessibilityRootObject must run on the main thread.
https://bugs.webkit.org/show_bug.cgi?id=210306

Reviewed by Chris Fleizach.

WKAccessibilityRootObject needs to run on the main thread because makes
calls into Document and Page. So reverting the change to make it run on
the AX thread. This means that we cannot simulate getting the root
object on the secondary thread at the moment, as it would with an
accessibility client that supports isolated tree mode. So it is a
tradeoff made for the time being to be able to make progress in testing
the rest of the functionality of AXIsolatedTree/Object.

  • WebKitTestRunner/InjectedBundle/mac/AccessibilityControllerMac.mm:

(WTR::AccessibilityController::accessibleElementById):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r259833 r259834  
     12020-04-09  Andres Gonzalez  <andresg_22@apple.com>
     2
     3        WKAccessibilityRootObject must run on the main thread.
     4        https://bugs.webkit.org/show_bug.cgi?id=210306
     5
     6        Reviewed by Chris Fleizach.
     7
     8        WKAccessibilityRootObject needs to run on the main thread because makes
     9        calls into Document and Page. So reverting the change to make it run on
     10        the AX thread. This means that we cannot simulate getting the root
     11        object on the secondary thread at the moment, as it would with an
     12        accessibility client that supports isolated tree mode. So it is a
     13        tradeoff made for the time being to be able to make progress in testing
     14        the rest of the functionality of AXIsolatedTree/Object.
     15
     16        * WebKitTestRunner/InjectedBundle/mac/AccessibilityControllerMac.mm:
     17        (WTR::AccessibilityController::accessibleElementById):
     18
    1192020-04-09  David Kilzer  <ddkilzer@apple.com>
    220
  • trunk/Tools/WebKitTestRunner/InjectedBundle/mac/AccessibilityControllerMac.mm

    r257739 r259834  
    9898{
    9999    WKBundlePageRef page = InjectedBundle::singleton().page()->page();
    100     PlatformUIElement root = nullptr;
    101 
    102     executeOnAXThreadIfPossible([&page, &root] {
    103         root = static_cast<PlatformUIElement>(WKAccessibilityRootObject(page));
    104     });
     100    PlatformUIElement root = static_cast<PlatformUIElement>(WKAccessibilityRootObject(page));
    105101
    106102    id result;
Note: See TracChangeset for help on using the changeset viewer.