Bug 153260

Summary: AX: ARIA combo boxes are not returning the right value for selected text range
Product: WebKit Reporter: chris fleizach <cfleizach>
Component: AccessibilityAssignee: chris fleizach <cfleizach>
Status: RESOLVED FIXED    
Severity: Normal CC: aboxhall, apinheiro, buildbot, commit-queue, dmazzoni, jcraig, jdiggs, mario, rniwa, samuel_white, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
patch
cfleizach: review-, buildbot: commit-queue-
Archive of layout-test-results from ews105 for mac-yosemite-wk2
none
Archive of layout-test-results from ews100 for mac-yosemite
none
Archive of layout-test-results from ews117 for mac-yosemite
none
patch none

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.