-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AX: Initialize the AX thread on first client request.
https://bugs.webkit.org/show_bug.cgi?id=259952 <rdar://problem/113592230> Reviewed by Tyler Wilcock. The AX thread was being initialize after building an empty isolated tree in AXObjectCache::getOrCreateIsolatedTree. However, there are multiple client requests that happen before the AX thread was initialized that come through the WKAccessibilityWebPageObject. If the main thread is busy parsing and rendering the page, those requests may not be served in a long time, causing clients like VoiceOver to report irresponsive application. That's true especially during the loading of large pages. This patch moves the initialization of the AX thread to the first request received in [WKAccessibilityWebPageObject accessibilityAttributeValue:], mitigating main thread contention in this scenario. * Source/WebCore/accessibility/AXObjectCache.cpp: (WebCore::AXObjectCache::getOrCreateIsolatedTree): * Source/WebCore/accessibility/AXObjectCache.h: * Source/WebCore/accessibility/mac/AXObjectCacheMac.mm: (WebCore::AXObjectCache::initializeAXThreadIfNeeded): (WebCore::AXObjectCache::initializeSecondaryAXThread): Renamed. * Source/WebKit/WebProcess/WebPage/mac/WKAccessibilityWebPageObjectMac.mm: (-[WKAccessibilityWebPageObject accessibilityAttributeValue:]): Canonical link: https://commits.webkit.org/266735@main
- Loading branch information
1 parent
25f2b30
commit fbca8d9
Showing
4 changed files
with
16 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters