Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AX: Avoid unnecessary main-thread trip to get selectedTextRange() for…
… secure fields https://bugs.webkit.org/show_bug.cgi?id=256407 rdar://problem/108977135 Reviewed by Chris Fleizach. Secure fields always return an empty selected text range. Since we cache AXPropertyName::IsSecureField, we can use this information to avoid a main-thread hit. * Source/WebCore/accessibility/AccessibilityObjectInterface.h: (WebCore::AXCoreObject::shouldReturnEmptySelectedText const): * Source/WebCore/accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::selectedTextRange const): * Source/WebCore/accessibility/isolatedtree/AXIsolatedObject.cpp: (WebCore::AXIsolatedObject::selectedTextRange const): Canonical link: https://commits.webkit.org/263762@main
- Loading branch information
Showing
3 changed files
with
6 additions
and
2 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