RESOLVED FIXED 104681
AX: Make isActionSupported cross-platform.
https://bugs.webkit.org/show_bug.cgi?id=104681
Summary AX: Make isActionSupported cross-platform.
Dominic Mazzoni
Reported 2012-12-11 09:50:30 PST
The isActionSupported method in DRT/WKTR takes a string parameter, which is platform-specific. With a minor refactoring, we could replace this with a cross-platform method and enable a few tests to run on more platforms.
Attachments
Patch (33.39 KB, patch)
2012-12-11 11:07 PST, Dominic Mazzoni
no flags
Patch (36.19 KB, patch)
2012-12-11 12:21 PST, Dominic Mazzoni
no flags
Patch for landing (36.38 KB, patch)
2012-12-11 20:15 PST, Dominic Mazzoni
no flags
Dominic Mazzoni
Comment 1 2012-12-11 11:07:18 PST
WebKit Review Bot
Comment 2 2012-12-11 11:11:30 PST
Please wait for approval from abarth@webkit.org, dglazkov@chromium.org, fishd@chromium.org, jamesr@chromium.org or tkent@chromium.org before submitting, as this patch contains changes to the Chromium public API. See also https://trac.webkit.org/wiki/ChromiumWebKitAPI.
chris fleizach
Comment 3 2012-12-11 11:14:29 PST
Comment on attachment 178838 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=178838&action=review > Source/WebKit/chromium/src/WebAccessibilityObject.cpp:588 > + UserGestureIndicator gestureIndicator(DefinitelyProcessingUserGesture); this seems like it should be on AccessibilityObject since all clients will benefit > Source/WebKit/chromium/src/WebAccessibilityObject.cpp:616 > + UserGestureIndicator gestureIndicator(DefinitelyProcessingUserGesture); i believe this call is already in axObject->press()
EFL EWS Bot
Comment 4 2012-12-11 12:08:49 PST
Dominic Mazzoni
Comment 5 2012-12-11 12:21:50 PST
Dominic Mazzoni
Comment 6 2012-12-11 12:22:32 PST
Comment on attachment 178838 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=178838&action=review >> Source/WebKit/chromium/src/WebAccessibilityObject.cpp:588 >> + UserGestureIndicator gestureIndicator(DefinitelyProcessingUserGesture); > > this seems like it should be on AccessibilityObject since all clients will benefit Sure, done. >> Source/WebKit/chromium/src/WebAccessibilityObject.cpp:616 >> + UserGestureIndicator gestureIndicator(DefinitelyProcessingUserGesture); > > i believe this call is already in axObject->press() You're right. Fixed.
chris fleizach
Comment 7 2012-12-11 16:21:02 PST
Comment on attachment 178846 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=178846&action=review looks good. minor comments you can fix in commit > Tools/DumpRenderTree/mac/AccessibilityUIElementMac.mm:678 > + return [actions containsObject:@"AXPress"]; this should be NSAccessibilityPressAction > Tools/DumpRenderTree/mac/AccessibilityUIElementMac.mm:688 > + return [actions containsObject:@"AXIncrement"]; NSAccessibilityIncrementAction > Tools/DumpRenderTree/mac/AccessibilityUIElementMac.mm:698 > + return [actions containsObject:@"AXDecrement"]; NSAccessibilityDecrementAction > Tools/WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm:686 > + return [actions containsObject:@"AXPress"]; ditto with the name used > Tools/WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm:696 > + return [actions containsObject:@"AXIncrement"]; ditto with the name used > Tools/WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm:706 > + return [actions containsObject:@"AXDecrement"]; ditto with the name used > LayoutTests/platform/mac/accessibility/slider-supports-actions.html:25 > + var succeeded = obj.isIncrementActionSupported() == true; seems like we have remove these "== true" as they're redundant > LayoutTests/platform/mac/accessibility/slider-supports-actions.html:28 > + var succeeded = obj.isDecrementActionSupported() == true; seems like we have remove these "== true" as they're redundant > LayoutTests/platform/mac/accessibility/slider-supports-actions.html:38 > + var succeeded = obj.isIncrementActionSupported() == true; seems like we have remove these "== true" as they're redundant > LayoutTests/platform/mac/accessibility/slider-supports-actions.html:41 > + var succeeded = obj.isDecrementActionSupported() == true; seems like we have remove these "== true" as they're redundant
Dominic Mazzoni
Comment 8 2012-12-11 20:15:28 PST
Created attachment 178952 [details] Patch for landing
WebKit Review Bot
Comment 9 2012-12-11 21:53:08 PST
Comment on attachment 178952 [details] Patch for landing Clearing flags on attachment: 178952 Committed r137414: <http://trac.webkit.org/changeset/137414>
WebKit Review Bot
Comment 10 2012-12-11 21:53:14 PST
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.