[Webkit-unassigned] [Bug 67190] A Media Element ie: <Audio> or <video>, without tabindex cannot be selected with keyboard (TAB Key).
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Sep 6 06:38:19 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=67190
--- Comment #12 from Deepak Sherveghar <bpwv64 at motorola.com> 2011-09-06 06:38:18 PST ---
Regarding the failing test-case : LayoutTests/fast/events/tabindex-focus-blur-all.html
Failing cases are as follows:
1. In LayoutTests/fast/events/resources/tabindex-focus-blur-all-frame1.html, Audio element without tab-index.
<audio controls src="../../../media/content/test.wav" id="audio1"></audio><br>
2. In LayoutTests/fast/events/resources/tabindex-focus-blur-all-iframe2.html, Video element without tab-index.
<video controls id="video4">
<source src="../../../media/content/test.mp4" type="video/mpeg"id="source4">
</video><br>
Test output for the above two element states that:
audio1 FAILED - was focused but focus wasn't expected
elemThatShouldFocus is null, focusedElem is <AUDIO> audio1
video4 FAILED - was focused but focus wasn't expected
elemThatShouldFocus is null, focusedElem is <VIDEO> video4
JS LayoutTests/fast/events/resources/tabindex-focus-blur-all.js used in the test compares elem.tabIndex == elem.getAttribute("tabindex") to verify which element should be focused. In our case, media elements are focused as expected, but the above condition fails since no tab-index attribute is present on the media element and hence the FAILED messages.
But media element should be focusable even though tab-index is not specified because control's attribute is present.
Not sure how to go about making this test case pass :( .
Any suggestions or pointers or approaches to resolve the above failing test case ????
On a different note, I observed that without my patch, The expected results are little different.
ie: on my linux ubuntu machine with webkit GTK build, running the above test with DRT gave following output
===============================================================================
bpwv64 at MIG-Workstation:~/projects/webkit_gtk/WebKit$ WebKitBuild/Debug/Programs/DumpRenderTree LayoutTests/fast/events/tabindex-focus-blur-all.html
Gtk-Message: Failed to load module "canberra-gtk-module"
332 focus / 331 blur events dispatched, and should be 331 / 331 FAILED
Total of 0 focus test(s) failed. PASSED
#EOF
LEAK: 2889 WebCoreNode
LEAK: 2 CachedResource
bpwv64 at MIG-Workstation:~/projects/webkit_gtk/WebKit$
===============================================================================
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list