Bug 153260 - AX: ARIA combo boxes are not returning the right value for selected text range
Summary: AX: ARIA combo boxes are not returning the right value for selected text range
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: chris fleizach
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-01-19 17:01 PST by chris fleizach
Modified: 2016-01-22 10:12 PST (History)
11 users (show)

See Also:


Attachments
patch (4.34 KB, patch)
2016-01-19 17:03 PST, chris fleizach
cfleizach: review-
buildbot: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from ews105 for mac-yosemite-wk2 (1.01 MB, application/zip)
2016-01-19 17:48 PST, Build Bot
no flags Details
Archive of layout-test-results from ews100 for mac-yosemite (746.55 KB, application/zip)
2016-01-19 17:53 PST, Build Bot
no flags Details
Archive of layout-test-results from ews117 for mac-yosemite (795.52 KB, application/zip)
2016-01-19 18:03 PST, Build Bot
no flags Details
patch (4.34 KB, patch)
2016-01-20 09:56 PST, chris fleizach
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description chris fleizach 2016-01-19 17:01:52 PST
If you have an ARIA combo box it does not return the right value for selected text range because we have code to NOT do that for aria things

But we should respect ARIA controls that ARE text elements.

<rdar://problem/24219086>
Comment 1 chris fleizach 2016-01-19 17:03:40 PST
Created attachment 269313 [details]
patch
Comment 2 Build Bot 2016-01-19 17:48:29 PST
Comment on attachment 269313 [details]
patch

Attachment 269313 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/714703

New failing tests:
accessibility/textarea-insertion-point-line-number.html
accessibility/textarea-selected-text-range.html
Comment 3 Build Bot 2016-01-19 17:48:33 PST
Created attachment 269316 [details]
Archive of layout-test-results from ews105 for mac-yosemite-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews105  Port: mac-yosemite-wk2  Platform: Mac OS X 10.10.5
Comment 4 Build Bot 2016-01-19 17:53:11 PST
Comment on attachment 269313 [details]
patch

Attachment 269313 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/714730

New failing tests:
accessibility/textarea-insertion-point-line-number.html
accessibility/textarea-selected-text-range.html
Comment 5 Build Bot 2016-01-19 17:53:15 PST
Created attachment 269318 [details]
Archive of layout-test-results from ews100 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews100  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 6 Build Bot 2016-01-19 18:03:12 PST
Comment on attachment 269313 [details]
patch

Attachment 269313 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/714731

New failing tests:
accessibility/textarea-selected-text-range.html
accessibility/textarea-insertion-point-line-number.html
Comment 7 Build Bot 2016-01-19 18:03:17 PST
Created attachment 269320 [details]
Archive of layout-test-results from ews117 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews117  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 8 Darin Adler 2016-01-19 22:43:52 PST
Comment on attachment 269313 [details]
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=269313&action=review

> Source/WebCore/accessibility/AccessibilityRenderObject.cpp:1497
> +    // Use the text control native range if it's a native object and it has no ARIA role (or has a text based ARIA role).
> +    if (isNativeTextControl() && (ariaRole != UnknownRole || isARIATextControl())) {

Comment makes it sound like this should be == UnknownRole rather than != UnknownRole. Do we have test coverage for this? I think perhaps that’s why tests are failing?
Comment 9 chris fleizach 2016-01-19 23:52:12 PST
Comment on attachment 269313 [details]
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=269313&action=review

>> Source/WebCore/accessibility/AccessibilityRenderObject.cpp:1497
>> +    if (isNativeTextControl() && (ariaRole != UnknownRole || isARIATextControl())) {
> 
> Comment makes it sound like this should be == UnknownRole rather than != UnknownRole. Do we have test coverage for this? I think perhaps that’s why tests are failing?

yep, that's why these tests are failing. messed up the logic before uploading.
Comment 10 chris fleizach 2016-01-20 09:56:16 PST
Created attachment 269355 [details]
patch
Comment 11 WebKit Commit Bot 2016-01-22 10:12:02 PST
Comment on attachment 269355 [details]
patch

Clearing flags on attachment: 269355

Committed r195457: <http://trac.webkit.org/changeset/195457>
Comment 12 WebKit Commit Bot 2016-01-22 10:12:08 PST
All reviewed patches have been landed.  Closing bug.