Bug 131426

Summary: AX: Make AXPress much more reliable on the Web
Product: WebKit Reporter: chris fleizach <cfleizach>
Component: AccessibilityAssignee: chris fleizach <cfleizach>
Status: RESOLVED FIXED    
Severity: Normal CC: aboxhall, apinheiro, commit-queue, dmazzoni, jcraig, jdiggs, mario, samuel_white, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 135689    
Attachments:
Description Flags
patch
none
patch mario: review+

Description chris fleizach 2014-04-08 21:57:48 PDT
AXPress fails when trying to select a TV provider from
http://www.cnn.com/video/data/2.0/video/cvptve/cvpstream1.html

We need to make AXPress more reliable by 
1) Using the element that is focused as the target of the event
2) Search for the inner mode control object when dispatching the event
Comment 1 Radar WebKit Bug Importer 2014-04-08 21:57:57 PDT
<rdar://problem/16562107>
Comment 2 chris fleizach 2014-04-08 22:02:17 PDT
Created attachment 228934 [details]
patch
Comment 3 chris fleizach 2014-04-08 23:47:35 PDT
Created attachment 228947 [details]
patch
Comment 4 WebKit Commit Bot 2014-04-08 23:48:56 PDT
Attachment 228947 [details] did not pass style-queue:


ERROR: Source/WebCore/accessibility/AccessibilityObject.cpp:42:  Alphabetical sorting problem.  [build/include_order] [4]
Total errors found: 1 in 14 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 5 Mario Sanchez Prada 2014-04-09 07:53:01 PDT
Comment on attachment 228947 [details]
patch

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

> Source/WebCore/accessibility/AccessibilityObject.cpp:42
> +#include "HitTestResult.h"

This placement seems to make the style checker unhappy

> Source/WebCore/accessibility/AccessibilityObject.cpp:723
> +    // The presencen of the actionElement will confirm whether we should even attempt a press.

s/presencen/presence

> Source/WebCore/accessibility/AccessibilityObject.cpp:750
> +    Element* element = this->element();
> +    Element* pressElement = element;

You can use just one variable here, pressElement, assigned to this->element()
Comment 6 chris fleizach 2014-04-09 11:42:49 PDT
http://trac.webkit.org/changeset/167024