Bug 77288

Summary: REGRESSION (r104303): Clicking inline video controls gives the video a focus ring
Product: WebKit Reporter: mitz
Component: MediaAssignee: Jer Noble <jer.noble>
Severity: Normal CC: jer.noble, sullivan, webkit.review.bot
Priority: P1 Keywords: InRadar, Regression
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
URL: data:text/html,%3Cvideo%20controls%20src=%22http://movies.apple.com/movies/us/apple/ipoditunes/2007/touch/ads/apple_ipodtouch_touch_r640-9cie.mov%22%3E
Description Flags
Patch darin: review+, webkit.review.bot: commit-queue-

Description mitz 2012-01-28 14:14:38 PST
To reproduce: Navigate to the URL. When the video loads, click the play button.

Result: The video gets a focus ring around it, but it shouldn’t.

Notes: This happens with many videos at apple.com.

Caused by <http://trac.webkit.org/r104303>, the fix for bug 75650.
Comment 1 mitz 2012-01-28 14:15:58 PST
Comment 2 Jer Noble 2012-02-02 16:50:25 PST
I believe the actual regression for this is <http://trac.webkit.org/changeset/95381>, the fix for bug #67190.  In that bug, HTMLMediaElements were explicitly made focusable.  The fix for bug #75650 unmasked this behavior.
Comment 3 Jer Noble 2012-02-02 16:51:38 PST
It looks like we can make the HTMLMediaElement non-mouse focusable without breaking keyboard focus (ala bug #67190) by overriding Node::isMouseFocusable().
Comment 4 Jer Noble 2012-02-03 12:53:15 PST
Created attachment 125387 [details]
Comment 5 WebKit Review Bot 2012-02-06 16:34:31 PST
Comment on attachment 125387 [details]

Rejecting attachment 125387 [details] from commit-queue.

Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 2

Last 500 characters of output:
Hunk #1 FAILED at 336.
1 out of 1 hunk FAILED -- saving rejects to file Source/WebCore/html/HTMLMediaElement.h.rej
patching file LayoutTests/ChangeLog
Hunk #1 succeeded at 1 with fuzz 3.
patching file LayoutTests/media/video-mouse-focus-expected.txt
patching file LayoutTests/media/video-mouse-focus.html

Failed to run "[u'/mnt/git/webkit-commit-queue/Tools/Scripts/svn-apply', u'--force', u'--reviewer', u'Darin Adler']" exit_code: 1 cwd: /mnt/git/webkit-commit-queue/

Full output: http://queues.webkit.org/results/11442046
Comment 6 Jer Noble 2012-02-06 16:37:42 PST
Doing this one manually...
Comment 7 Jer Noble 2012-02-06 16:52:19 PST
Committed r106876: <http://trac.webkit.org/changeset/106876>