-
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.
VO interacts with the element containing the app selection instead of…
… with VO's current element. https://bugs.webkit.org/show_bug.cgi?id=259629 rdar://112193520 Reviewed by Chris Fleizach. VoiceOver uses the AXTextMarkerRangeForUnorderedTextMarkersAttribute to decide which element to interact with when the user presses VO Shift Down Arrow. This API failed when one of the TextMarker parameters was created off the main thread and thus has a null Node*. This patch fixes the issue by having a single implementation for both AXTextMarkerRangeForUnorderedTextMarkers and AXTextMarkerRangeForTextMarkers that supports unordered TextMarkers. Added WTR::AccessibilityUIElement::textMarkerRangeForUnorderedMarkers and a test case for this API. * LayoutTests/accessibility/text-marker/text-marker-range-with-unordered-markers-expected.txt: * LayoutTests/accessibility/text-marker/text-marker-range-with-unordered-markers.html: * LayoutTests/platform/glib/accessibility/text-marker/text-marker-range-with-unordered-markers-expected.txt: Added. * LayoutTests/platform/ios/accessibility/text-marker/text-marker-range-with-unordered-markers-expected.txt: Added. * LayoutTests/platform/mac-wk1/TestExpectations: * Source/WebCore/accessibility/AXTextMarker.cpp: (WebCore::partialOrder): * Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:forParameter:]): * Tools/WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp: (WTR::AccessibilityUIElement::textMarkerRangeForUnorderedMarkers): * Tools/WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * Tools/WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * Tools/WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: (WTR::AccessibilityUIElement::textMarkerRangeForUnorderedMarkers): Canonical link: https://commits.webkit.org/266417@main
- Loading branch information
1 parent
54d388c
commit 5290364
Showing
11 changed files
with
53 additions
and
29 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
13 changes: 13 additions & 0 deletions
13
...form/glib/accessibility/text-marker/text-marker-range-with-unordered-markers-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
This test ensures that clietns can build an AXTextMarkerRange from unordered TextMarkers, i.e., start > end. | ||
|
||
PASS: text.stringForTextMarkerRange(range) === 'This is a paragraph.' | ||
PASS: text.textMarkerRangeLength(range) === 20 | ||
PASS: text.stringForTextMarkerRange(range1) === 'This is a paragraph.' | ||
PASS: text.textMarkerRangeLength(range1) === 20 | ||
PASS: text.stringForTextMarkerRange(range2) === 'para' | ||
PASS: text.textMarkerRangeLength(range2) === 4 | ||
|
||
PASS successfullyParsed is true | ||
|
||
TEST COMPLETE | ||
|
13 changes: 13 additions & 0 deletions
13
...tform/ios/accessibility/text-marker/text-marker-range-with-unordered-markers-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
This test ensures that clietns can build an AXTextMarkerRange from unordered TextMarkers, i.e., start > end. | ||
|
||
PASS: text.stringForTextMarkerRange(range) === 'This is a paragraph.' | ||
PASS: text.textMarkerRangeLength(range) === 20 | ||
PASS: text.stringForTextMarkerRange(range1) === 'This is a paragraph.' | ||
PASS: text.textMarkerRangeLength(range1) === 20 | ||
PASS: text.stringForTextMarkerRange(range2) === 'para' | ||
PASS: text.textMarkerRangeLength(range2) === 4 | ||
|
||
PASS successfullyParsed is true | ||
|
||
TEST COMPLETE | ||
|
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
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