-
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: TextInputMarkedTextMarkerRange should be cached during initializa…
…tion https://bugs.webkit.org/show_bug.cgi?id=265434 rdar://problem/118866640 Reviewed by Tyler Wilcock. When isolated objects are created for text controls, we do not cache the initial TextInputMarkedTextMarkerRange value. This becomes an issue when an object is initialized while there is already marked text. In that case, not caching that value initially will return a null text marker range, which is incorrect. This patch caches that value when initializing the object, as well as updates related tests to (1) verify this behavior and (2) retrieve that range asynchronously. * LayoutTests/accessibility/mac/text-input-marked-range-expected.txt: * LayoutTests/accessibility/mac/text-input-marked-range.html: * LayoutTests/accessibility/mac/text-input-marked-text-marker-range-expected.txt: * LayoutTests/accessibility/mac/text-input-marked-text-marker-range.html: * Source/WebCore/accessibility/isolatedtree/AXIsolatedObject.cpp: (WebCore::AXIsolatedObject::initializeProperties): Canonical link: https://commits.webkit.org/271251@main
- Loading branch information
1 parent
2302494
commit 5965a5a
Showing
5 changed files
with
59 additions
and
46 deletions.
There are no files selected for viewing
9 changes: 3 additions & 6 deletions
9
LayoutTests/accessibility/mac/text-input-marked-range-expected.txt
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
14 changes: 6 additions & 8 deletions
14
LayoutTests/accessibility/mac/text-input-marked-text-marker-range-expected.txt
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