Bug 149278

Summary: AX: aria-hidden=false causes video fallback content to be exposed to AX API
Product: WebKit Reporter: James Craig <jcraig>
Component: AccessibilityAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: aboxhall, apinheiro, cfleizach, commit-queue, dmazzoni, jdiggs, mario, n_wang, samuel_white, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 9   
Hardware: All   
OS: All   
Attachments:
Description Flags
test case
none
patch
none
patch none

Description James Craig 2015-09-17 12:46:06 PDT
Created attachment 261411 [details]
test case

AX: aria-hidden=false causes video fallback content to be exposed to AX API

aria-hidden="false" should only affect the node (<div>) and immediate child text nodes. In this case, it is causing a grandchild text node to be exposed.
Comment 1 Radar WebKit Bug Importer 2015-09-17 12:46:41 PDT
<rdar://problem/22744328>
Comment 2 Nan Wang 2016-03-30 17:36:35 PDT
Created attachment 275243 [details]
patch
Comment 3 chris fleizach 2016-03-30 17:43:12 PDT
Comment on attachment 275243 [details]
patch

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

> Source/WebCore/ChangeLog:12
> +        No new tests.

should mention the updated test

> Source/WebCore/accessibility/AXObjectCache.cpp:2518
> +            if (testNode->renderer() != nil)

if (!testNode->renderer())
Comment 4 Nan Wang 2016-03-30 17:48:21 PDT
Comment on attachment 275243 [details]
patch

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

>> Source/WebCore/accessibility/AXObjectCache.cpp:2518
>> +            if (testNode->renderer() != nil)
> 
> if (!testNode->renderer())

I think you mean if(testNode->renderer()) ?
Comment 5 Nan Wang 2016-03-30 17:49:14 PDT
Created attachment 275244 [details]
patch

review comments
Comment 6 WebKit Commit Bot 2016-03-31 09:17:14 PDT
Comment on attachment 275244 [details]
patch

Clearing flags on attachment: 275244

Committed r198895: <http://trac.webkit.org/changeset/198895>
Comment 7 WebKit Commit Bot 2016-03-31 09:17:18 PDT
All reviewed patches have been landed.  Closing bug.