WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
UNCONFIRMED
121477
[ATK] Expose aria-valuetext as an object attribute.
https://bugs.webkit.org/show_bug.cgi?id=121477
Summary
[ATK] Expose aria-valuetext as an object attribute.
Krzysztof Czech
Reported
2013-09-17 03:08:11 PDT
Based on
http://www.w3.org/TR/wai-aria-implementation/
, aria-valuetext should be exposed as an object attribute.
Attachments
Patch
(10.83 KB, patch)
2013-09-17 03:31 PDT
,
Krzysztof Czech
no flags
Details
Formatted Diff
Diff
Patch
(10.77 KB, patch)
2013-09-17 04:33 PDT
,
Krzysztof Czech
mario
: review-
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2013-09-17 03:08:35 PDT
<
rdar://problem/15007710
>
Krzysztof Czech
Comment 2
2013-09-17 03:31:20 PDT
Created
attachment 211879
[details]
Patch
Joanmarie Diggs
Comment 3
2013-09-17 03:54:08 PDT
(In reply to
comment #0
)
> Based on
http://www.w3.org/TR/wai-aria-implementation/
, aria-valuetext should be exposed as an object attribute.
Right now, exposing the text which describes an AtkValue's value as an object attribute is not wrong per se; instead, it's a hack to deal with a current lack of API in ATK/AT-SPI2 to expose it properly. See
https://bugzilla.gnome.org/show_bug.cgi?id=684576
I have just commented on that bug. If we get the correct API in place, will you please use that instead?
Krzysztof Czech
Comment 4
2013-09-17 04:13:20 PDT
> Right now, exposing the text which describes an AtkValue's value as an object attribute is not wrong per se; instead, it's a hack to deal with a current lack of API in ATK/AT-SPI2 to expose it properly. See
https://bugzilla.gnome.org/show_bug.cgi?id=684576
I already noticed that bug, I hope it'll be resolved soon.
> > I have just commented on that bug. If we get the correct API in place, will you please use that instead?
Yes sure, as soon as we get the correct ATK API, I will use it instead. Thank you for your review.
Krzysztof Czech
Comment 5
2013-09-17 04:33:47 PDT
Created
attachment 211885
[details]
Patch
Krzysztof Czech
Comment 6
2013-09-17 04:34:52 PDT
(In reply to
comment #5
)
> Created an attachment (id=211885) [details] > Patch
Corrected tests' description
Mario Sanchez Prada
Comment 7
2013-09-17 06:49:11 PDT
Comment on
attachment 211885
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=211885&action=review
(In reply to
comment #4
)
> [...] > > I have just commented on that bug. If we get the correct API in place, will you please use that instead? > Yes sure, as soon as we get the correct ATK API, I will use it instead. >
I've just reviewed the patch and, besides the things I pointed out below, I think the implementation in the wrapper is ok if we compare it to what W3C says now. However, I agree with joanie that we will need to re-do this anyway in terms of the new API in AtkValue as soon as it gets there, but for the time being I'd personally go with this. Do you agree, Joanie? Btw, giving r- because of the thing about sharing the tests and the missing implementation for DRT
> LayoutTests/ChangeLog:17 > + * platform/efl/accessibility/aria-valuetext-expected.txt: Added. > + * platform/efl/accessibility/aria-valuetext-on-native-slider-expected.txt: Added. > + * platform/efl/accessibility/aria-valuetext-on-native-slider.html: Added. > + * platform/efl/accessibility/aria-valuetext.html: Added. > + * platform/gtk/accessibility/aria-valuetext-expected.txt: Added. > + * platform/gtk/accessibility/aria-valuetext-on-native-slider-expected.txt: Added. > + * platform/gtk/accessibility/aria-valuetext-on-native-slider.html: Added. > + * platform/gtk/accessibility/aria-valuetext.html: Added.
It looks to me like these 2 tests could be shared as cross-platform ones. Why not reusing the ones from the mac by moving them and adapting DRT & WKTR to provide the same output?
> Tools/WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:808 > + String attributeValue = getAttributeSetValueForId(ATK_OBJECT(m_element.get()), "valuetext");
Here it might be a good place to prepend the "AXValueDescription: " string, so we can share the tests. Btw, I don't see the change for DRT in this patch
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug