Bug 104681 - AX: Make isActionSupported cross-platform.
Summary: AX: Make isActionSupported cross-platform.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Dominic Mazzoni
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-11 09:50 PST by Dominic Mazzoni
Modified: 2012-12-11 21:53 PST (History)
16 users (show)

See Also:


Attachments
Patch (33.39 KB, patch)
2012-12-11 11:07 PST, Dominic Mazzoni
no flags Details | Formatted Diff | Diff
Patch (36.19 KB, patch)
2012-12-11 12:21 PST, Dominic Mazzoni
no flags Details | Formatted Diff | Diff
Patch for landing (36.38 KB, patch)
2012-12-11 20:15 PST, Dominic Mazzoni
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dominic Mazzoni 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.
Comment 1 Dominic Mazzoni 2012-12-11 11:07:18 PST
Created attachment 178838 [details]
Patch
Comment 2 WebKit Review Bot 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.
Comment 3 chris fleizach 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()
Comment 4 EFL EWS Bot 2012-12-11 12:08:49 PST
Comment on attachment 178838 [details]
Patch

Attachment 178838 [details] did not pass efl-ews (efl):
Output: http://queues.webkit.org/results/15241955
Comment 5 Dominic Mazzoni 2012-12-11 12:21:50 PST
Created attachment 178846 [details]
Patch
Comment 6 Dominic Mazzoni 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.
Comment 7 chris fleizach 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
Comment 8 Dominic Mazzoni 2012-12-11 20:15:28 PST
Created attachment 178952 [details]
Patch for landing
Comment 9 WebKit Review Bot 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>
Comment 10 WebKit Review Bot 2012-12-11 21:53:14 PST
All reviewed patches have been landed.  Closing bug.