[Webkit-unassigned] [Bug 142059] AX: Provide API for assistive tech to ignore DOM key event handlers

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 27 16:41:55 PST 2015


https://bugs.webkit.org/show_bug.cgi?id=142059

--- Comment #7 from chris fleizach <cfleizach at apple.com> ---
Comment on attachment 247479
  --> https://bugs.webkit.org/attachment.cgi?id=247479
Patch

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

> Source/WebCore/dom/EventDispatcher.cpp:353
> +#if PLATFORM(COCOA) && !PLATFORM(IOS)

is there a reason we don't want this for iOS? it seems like it might be useful someday

> Source/WebCore/dom/EventDispatcher.cpp:358
> +    if (!preventDOMDispatch && !event->propagationStopped() && !eventPath.isEmpty())

instead of putting the #define here, i think moving it into the method itself would be a bit cleaner. then you don't need to make a separate variable to hold the result

> Source/WebCore/page/EventHandler.cpp:3218
> +bool EventHandler::accessibilityWantsToHandleEvent(Event& event, Node& node)

My suggestion for a name is "accessibilityPreventsEventDispatch())

> Source/WebCore/page/EventHandler.cpp:3220
> +    if (!AXObjectCache::accessibilityEnhancedUserInterfaceEnabled())

you might want to check accessibilityEnabled and enhancedUserInterface enabled, in case they mistakenly got out of date

> Source/WebCore/page/EventHandler.cpp:3224
> +    if (eventType != eventNames().keydownEvent && eventType != eventNames().keypressEvent)

what about keyUp? seems like webapps could get into a bad state if they only got keyUps

> Source/WebCore/page/EventHandler.cpp:3235
> +    Frame* frame = nodeAccessibility->frame();

i don't think you need to get an axObject from the node in order to just get back to the frame

I think you can just do node.document()->frame()

> Source/WebCore/page/EventHandler.cpp:3241
> +        // Tab

instead of adding comments that say what they are which are, can you add a comment explaining why we are snarfing tab and arrow keys

> Source/WebCore/page/Settings.in:48
> +ignoreDOMKeyEventHandlers initial=false

i'm not crazy about the name.
One idea: preventKeyboardEventDispatch

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150228/97fb1b49/attachment-0002.html>


More information about the webkit-unassigned mailing list