Bug 98358

Summary: [GTK] accessibility/aria-scrollbar-role.html is failing
Product: WebKit Reporter: Zan Dobersek <zan>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: aboxhall, apinheiro, cfleizach, dmazzoni, jdiggs, k.czech, mario, mrobinson, webkit.review.bot, zan
Priority: P2 Keywords: Gtk, LayoutTestFailure
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 98347, 111989    
Attachments:
Description Flags
Patch
mrobinson: review-
Patch none

Zan Dobersek
Reported 2012-10-04 00:35:15 PDT
Attachments
Patch (8.00 KB, patch)
2013-03-18 08:03 PDT, Krzysztof Czech
mrobinson: review-
Patch (7.91 KB, patch)
2013-03-19 03:56 PDT, Krzysztof Czech
no flags
Krzysztof Czech
Comment 1 2013-03-18 08:03:04 PDT
Martin Robinson
Comment 2 2013-03-18 08:08:02 PDT
Comment on attachment 193565 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=193565&action=review Some unnecessary string duplication going on, but otherwise looks good to me. :) > Tools/DumpRenderTree/atk/AccessibilityUIElementAtk.cpp:514 > + GOwnPtr<gchar> axOrientation; > + if (checkElementState(m_element, ATK_STATE_HORIZONTAL)) > + axOrientation.set(g_strdup_printf("AXOrientation: AXHorizontalOrientation")); > + else if (checkElementState(m_element, ATK_STATE_VERTICAL)) > + axOrientation.set(g_strdup_printf("AXOrientation: AXVerticalOrientation")); > + > + if (!axOrientation) > + return JSStringCreateWithCharacters(0, 0); > + > + return JSStringCreateWithUTF8CString(axOrientation.get()); See below. > Tools/WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:552 > + GOwnPtr<gchar> axOrientation; > + if (checkElementState(m_element, ATK_STATE_HORIZONTAL)) > + axOrientation.set(g_strdup_printf("AXOrientation: AXHorizontalOrientation")); > + else if (checkElementState(m_element, ATK_STATE_VERTICAL)) > + axOrientation.set(g_strdup_printf("AXOrientation: AXVerticalOrientation")); > + g_strdump_printf can just be g_strdump and even more simply can just be like this: const char* axOrientation = 0; if (checkElementState(m_element, ATK_STATE_HORIZONTAL)) axOrientation = "AXOrientation: AXHorizontalOrientation"; ...
Martin Robinson
Comment 3 2013-03-18 08:08:40 PDT
Would love to have Joanie or Mario double-check this one.
Mario Sanchez Prada
Comment 4 2013-03-19 03:18:32 PDT
(In reply to comment #3) > Would love to have Joanie or Mario double-check this one. I agree with martin comments and suggestions. Apart from that, the patch looks good to me, a11y-wise.
Krzysztof Czech
Comment 5 2013-03-19 03:56:37 PDT
Krzysztof Czech
Comment 6 2013-03-19 04:00:34 PDT
(In reply to comment #4) > (In reply to comment #3) > > Would love to have Joanie or Mario double-check this one. > > I agree with martin comments and suggestions. Apart from that, the patch looks good to me, a11y-wise. Thanks. Applied Martin's suggestions
WebKit Review Bot
Comment 7 2013-03-20 01:14:37 PDT
Comment on attachment 193782 [details] Patch Clearing flags on attachment: 193782 Committed r146312: <http://trac.webkit.org/changeset/146312>
WebKit Review Bot
Comment 8 2013-03-20 01:14:42 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.