Bug 77288 - REGRESSION (r104303): Clicking inline video controls gives the video a focus ring
Summary: REGRESSION (r104303): Clicking inline video controls gives the video a focus ...
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P1 Normal
Assignee: Jer Noble
URL: data:text/html,%3Cvideo%20controls%20...
Keywords: InRadar, Regression
Depends on:
Reported: 2012-01-28 14:14 PST by mitz
Modified: 2012-02-06 16:52 PST (History)
3 users (show)

See Also:

Patch (4.67 KB, patch)
2012-02-03 12:53 PST, Jer Noble
darin: review+
webkit.review.bot: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>