Bug 156084

Summary: AX: AX hit-testing does not work on WebKit video playback buttons
Product: WebKit Reporter: Nan Wang <n_wang>
Component: AccessibilityAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: n_wang, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
initial patch
none
patch darin: review+

Nan Wang
Reported 2016-03-31 14:48:47 PDT
We should allow hit testing on video tags.
Attachments
initial patch (4.89 KB, patch)
2016-03-31 16:17 PDT, Nan Wang
no flags
patch (5.49 KB, patch)
2016-03-31 16:37 PDT, Nan Wang
darin: review+
Nan Wang
Comment 1 2016-03-31 14:49:04 PDT
Nan Wang
Comment 2 2016-03-31 16:17:04 PDT
Created attachment 275350 [details] initial patch
Nan Wang
Comment 3 2016-03-31 16:37:48 PDT
Created attachment 275354 [details] patch test failed on DRT
Darin Adler
Comment 4 2016-03-31 18:15:56 PDT
Comment on attachment 275354 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=275354&action=review > Source/WebCore/accessibility/AccessibilityRenderObject.cpp:2260 > + if (!shadowHost) > + return false; > + > + if (shadowHost->hasTagName(videoTag)) > + return false; > + > + return true; Cleaner way to write this: return shadowHost && shadowHost->hasTagName(videoTag); But also, this needs a comment explaining why this is the correct implementation for this function. What is special about video tags? > Source/WebCore/accessibility/AccessibilityRenderObject.cpp:2277 > + Node* node = hitTestResult.innerNode(); Should put this into a local variable before the early return just above. Node* node = hitTestResult.innerNode(); if (!node) return nullptr;
Nan Wang
Comment 5 2016-03-31 18:55:51 PDT
Comment on attachment 275354 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=275354&action=review >> Source/WebCore/accessibility/AccessibilityRenderObject.cpp:2260 >> + return true; > > Cleaner way to write this: > > return shadowHost && shadowHost->hasTagName(videoTag); > > But also, this needs a comment explaining why this is the correct implementation for this function. What is special about video tags? We need to allow automation of mouse events on video tags.
Nan Wang
Comment 6 2016-03-31 22:34:42 PDT
Note You need to log in before you can comment on or make changes to this bug.