Closed Bug 744544 Opened 12 years ago Closed 11 years ago

YouTube Steals Keyboard Focus

Categories

(Firefox :: Keyboard Navigation, defect)

x86
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 78414

People

(Reporter: shane.bundy, Unassigned)

Details

I was watching a YouTube video in Nightly and I could freely scroll up and down using the arrow keys and the home and end keys.

When I clicked on the video the focus is stolen from the keyboard and I can't scroll the page. When I click away from the video (in an attempt to stop Flash from capturing my keyboard strokes) it continues to capture my keypresses (i.e. home starts the video from the beginning, etc.) and the only way to regain browser focus is to switch tabs.

I am using Flash v11.2.300.130.
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
This is not a duplicate - it happens AFTER the plugin content loses focus (i.e. clicking the page).
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
This is caused by Flash 11.2.300.130 (incubator build) - it still occurs in Nightly on any site with Flash: like YouTube, Celestia Radio and Miniclip.
Shane: Where did you get that version from? I don't see it on http://helpx.adobe.com/flash-player/kb/archived-flash-player-versions.html.

I have Version: 11.3.300.214 which is the latest sandboxed version on adobe.com.
I've just noticed there was an update released last week - whoops. I'll try to reproduce it tomorrow as it's gone midnight over here.

I got my incubator build from http://labs.adobe.com/downloads/flashplayer11-3.html (the same place where I found out about the update.)
I can still reproduce with Flash 11.3.300.214.

OT: When Flash initialises, Nightly loses windows focus as well - this does not happen in other browsers.
I get the same problem with 11.3.300.262. Very annoying!
This seems to be Adobe's ticket about this problem: https://bugbase.adobe.com/index.cfm?event=bug&id=3223393
Definately a BUG

Beside of keyboard keys, youtube even steals SYSTEM KEYS(volume up/down, volume mute, mic mute).

So to lower system volume I have to click outside the browser EVERY TIME before I can use those.

It's not just a hard bug in Flash, because there are Flash-embedded videos that don't steal, but also not youtube related, because some other do steal like youtube. Wierd thing is, all buttons work properly in Fullscreen mode for all I've tested. It's also not JavaScript related, because for ex. on youtube, the focus is stolen when you click inside the video object.

It's definately a Firefox browser bug.

Please fix ASAP!
Has this been addressed more recently?
Switch to the Youtube HTML5 player trial. Firefox no longer steals the focus, and after clicking on the video cmd-T, ctrl-tab etc will work as normal. 
By the way, it seems like safari will automatically use the HTML5 player, whereas in firefox I had to opt in.

I'm running safar 5 and firefox 16 on mac os x 10.5.8 if that matters.
That is because the HTML5 version of YouTube does not use Flash which captures all keyboard events. You will find this behavior inconstant as some videos are Flash only.
hey thanks for the info about the HTML player trial. That solves the problem a good deal of the time. 

I would love to see Flash eliminated from the face of the web (and for that matter, Adobe altogether.)
Only way to get keyboard actions back appears to be clicking the scrollbar
Status: UNCONFIRMED → NEW
Ever confirmed: true
This is still a dupe of bug 78414. The only change is that Adobe implemented protected mode which can be disabled. This causes Flash to get all key presses on the page once Flash has focus, not just inside Flash.

There are other comments which reference bug 768802. Which is Flash causing Firefox to loose focus.
Status: NEW → RESOLVED
Closed: 12 years ago11 years ago
Resolution: --- → DUPLICATE
(In reply to Jesper Hansen from comment #14)
> Only way to get keyboard actions back appears to be clicking the scrollbar

Switching to another app and then back to Firefox seems to accomplish the same.
You need to log in before you can comment on or make changes to this bug.