Closed Bug 1697551 Opened 4 years ago Closed 4 years ago

Unable to type spaces and other characters (f, m) into YouTube search bar

Categories

(Web Compatibility :: Site Reports, defect)

defect

Tracking

(firefox-esr78 fixed, firefox86 fixed, firefox87 fixed, firefox88 fixed)

RESOLVED FIXED
Tracking Status
firefox-esr78 --- fixed
firefox86 --- fixed
firefox87 --- fixed
firefox88 --- fixed

People

(Reporter: standard8, Unassigned)

References

Details

Various users are reporting that we they are unable to type in spaces into the search bar on youtube.

I have reproduced this on both Firefox Release (86.0) and the latest nightly build on Mac. It fails with tracking protection off as well.

There are no error messages on the web console.

This also appears to affect Safari.

Opera and Google Chrome work fine.

If you're on a video, F and M also triggers the UI (fullscreen, mute, and space triggers play/stop).

Summary: Unable to type spaces into YouTube search bar → Unable to type spaces and other characters (f, m) into YouTube search bar

All Firefox versions are affected.

Quoting an email I just sent to our contacts,

There's a keydown handler on the yt-hotkey-manager, which also gets triggered every time something is typed into the search bar. This event eventually ends up in https://www.youtube.com/s/desktop/01a10dcc/jsbin/desktop_polymer_inlined_html_polymer_flags.vflset/desktop_polymer_inlined_html_polymer_flags.js, in a function called onKeyDownEvent_.

The noticable difference here is that when typing into the search bar in Firefox, this.ignoreKeyEvent_(a) returns false, while in Chrome, this is true. Looking into this function is a bit tricky, as it's hard to read without having the sources, but a.path jumped out. a is the KeyboardEvent, and path is an attribute that should not be there. It looks like Chrome is supplying ... soemthing here (looks like the event's bubbling path maybe?), but this attribute is non-standard and I don't even really know what it does. It's undefined in Firefox and Safari.

Looks like relying on this attribute is breaking things here.

It's possible that this is meant to be Shadow DOMs bubbling path, but in that case, this code should be a.composedPath(), which would work in all modern browsers. Chrome appears to be supporting path only for legacy reasons, see https://bugs.chromium.org/p/chromium/issues/detail?id=740870 and potentially other issues.

(presumably comment 9 did not mean to reset the affected flags, so I'm re-setting them)

See Also: → 1697590

The YouTube team has verified the bug on their site and is rolling back the website update. This should be fixed soon for all users.

It seems to be working correctly for me now.

Yes, confirmed as fixed by the YouTube team.

Confirmo que Youtube fue solucionado en Firefox x64 y Nigthy

It's working now. Thanks everyone!

(In reply to punkybao from comment #21)

It's working now. Thanks everyone!

Working! Its been fixed

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED

Actually, not fixed.
For brevity (people with ergonomic needs still exist) let's say you have custom shortcuts like b to toggle bookmarks toolbar.
On google.com or any other page except youtube, b will toggle your thing as long as you are not focusing an input field.
Once you focus an input field, control is passed to the webpage and it's typing literal b or whatever the page wants.
On youtube.com on the other hand, all input fields are broken (search, comment) and pressing b will toggle your thing instead of typing b !
Funny thing is that it's case-sensitive and you can still type capital B.
This bug report should be reopened until youtube fully reverts whatever they broke.

No longer an issue even in the context above, 78esr/86/88

You need to log in before you can comment on or make changes to this bug.