Bug 171164

Summary: [ATK] Implement support for new ARIA 1.1 values of aria-haspopup
Product: WebKit Reporter: Joanmarie Diggs <jdiggs>
Component: AccessibilityAssignee: Joanmarie Diggs <jdiggs>
Severity: Normal CC: aboxhall, apinheiro, buildbot, cfleizach, commit-queue, dmazzoni, jcraig, samuel_white, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: Linux   
Description Flags
Patch none

Description Joanmarie Diggs 2017-04-22 10:42:44 PDT
For ATK, support for aria-haspopup requires:

1. Add STATE_HAS_POPUP to the state set
2. Expose the value of aria-haspopup via the "haspopup" object attribute
Comment 1 Radar WebKit Bug Importer 2017-04-22 10:43:10 PDT
Comment 2 Radar WebKit Bug Importer 2017-04-22 10:49:37 PDT
Comment 3 Joanmarie Diggs 2017-04-26 06:22:38 PDT
Created attachment 308239 [details]
Comment 4 Joanmarie Diggs 2017-04-26 07:52:56 PDT
Comment on attachment 308239 [details]

Chris: Please review when you have a chance. Thanks!
Comment 5 chris fleizach 2017-04-26 10:02:21 PDT
Comment on attachment 308239 [details]

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

> Source/WebCore/accessibility/AccessibilityRenderObject.cpp:1013
> +    const AtomicString& haspopup = getAttribute(aria_haspopupAttr);

I think this can probably all move into AXObject.cpp and then this won't have to be virtual

> Source/WebCore/accessibility/AccessibilityRenderObject.cpp:1014
> +    if (equalLettersIgnoringASCIICase(haspopup, "true")

should probably be hasPopup

> Source/WebCore/accessibility/AccessibilityRenderObject.cpp:1032
> +    return String();

should this also return "false"?

> Source/WebCore/accessibility/AccessibilityRenderObject.cpp:1038
> +    return !haspopup.isEmpty() && !equalLettersIgnoringASCIICase(haspopup, "false");

if ariaPopupValue() returned false instead of empty string we wouldn't also need the isEmpty check here
Comment 6 Joanmarie Diggs 2017-04-26 11:04:05 PDT
Created attachment 308269 [details]
Comment 7 WebKit Commit Bot 2017-04-26 12:30:11 PDT
Comment on attachment 308269 [details]

Clearing flags on attachment: 308269

Committed r215821: <http://trac.webkit.org/changeset/215821>
Comment 8 WebKit Commit Bot 2017-04-26 12:30:13 PDT
All reviewed patches have been landed.  Closing bug.