Closed Bug 1197775 Opened 9 years ago Closed 9 years ago

Can't paste text into YouTube comment form

Categories

(Web Compatibility :: Site Reports, defect)

Firefox 39
defect
Not set
normal

Tracking

(firefox40 affected, firefox41 affected, firefox42 affected, firefox43 affected)

RESOLVED INVALID
Tracking Status
firefox40 --- affected
firefox41 --- affected
firefox42 --- affected
firefox43 --- affected

People

(Reporter: mhal60, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Windows NT 5.1; rv:39.0) Gecko/20100101 Firefox/39.0
Build ID: 20150806001005

Steps to reproduce:

(1) Go to youtube. (make sure you've logged in)
(2) Find a video. 
(3) Try to paste any text like 'asfsdf' into a comment. -> 
(4) Text is not pasted. Doesn't matter if using 'right click paste' or 'ctrl + v' paste. (Pasting text like above works perfectly in Google Chrome)




Actual results:

Text not pasted. 


Expected results:

Text should have been pasted.

p.s. This bug is really annoying. I know I'm not the only one. Updating to newest version or downgrading to previous version doesn't help.
Thanks for taking the time to report this!
Does the problem still happen if you start Firefox in Safe Mode? (Safe Mode disables extensions and themes, hardware acceleration and some JavaScript stuff in order to exclude some possible reasons for problems. It does not disable plugins which are add-ons.) See http://support.mozilla.com/en-US/kb/Safe+Mode 

And does this also happen with a new and empty profile? See http://support.mozilla.com/en-US/kb/Basic%20Troubleshooting#w_8-make-a-new-profile and http://support.mozilla.org/kb/Managing%20profiles
Flags: needinfo?(mhal60)
Hi Andre, Thanks for your swift answer.

Problem persists in safe mode/addons disabled etc.

Problem persists with new empty profile.

Regards
Flags: needinfo?(mhal60)
Trying to move to a more appropriate component .
QA Whiteboard: [bugday-20150824]
Component: Untriaged → Editor
Product: Firefox → Core
This happens in SeaMonkey as well. Wouldn't this issue be Google's fault though? It started a few days for everyone.

FYI from https://groups.google.com/a/googleproductforums.com/d/msgid/youtube/2cedba82-285e-4fdf-9532-ee77926850bf%40googleproductforums.com?utm_medium=email&utm_source=footer thread's post as a workaround (Google still needs to fix it since they broke its paste feature):

"Solved! In just 3 steps

    open about:config in mozilla
    search dom.event.clipboardevents.enabled in the search box which comes.
    Now turn this to false.

Done
Source: http://merabheja.com/fix-can-not-paste-text-in-youtube-comments-using-mozilla/ "
I can confirm the above toggle of dom.event.clipboardevents.enabled does allow me to paste into YouTube comments.  40.0.3 in Win 7 Pro.  From what https://developer.mozilla.org/en-US/docs/Mozilla/Preferences/Preference_reference/dom.event.clipboardevents.enabled says, perhaps they are detecting and not allowing it? Why I have no idea.
Another problem that is happening in the Youtube comments, the autocomplete to name another user in box comment is not working.
When entering +UserName should show several users to choose from.
Change the dom.event.clipboardevents.enabled to "false" not solve the problem.
I believe that this other problem is related to the same bug copy-paste.
It's a YT issue, it doesn't work with old versions of FF. Surely a recent change in their code.

Chris, I read you know somebody at YT, could you pass this issue on him, please.
Flags: needinfo?(cpeterson)
This is definitely a YouTube issue. I can reproduce this problem in Firefox, IE, and Edge.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(cpeterson)
Summary: Youtube: Can't paste in Youtube comment. → Can't paste text into YouTube comment form
I am closing this bug report because it is not a Firefox bug. Since this is a website bug, I filed a new report on webcompat.com and I will contact YouTube:

https://webcompat.com/issues/1655
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → INVALID
NB: it doesn't work in the main comment area when the user wants to write a new comment but it works in a comment area to reply to a previous comment.
Here's my fix: https://greasyfork.org/en/scripts/12433-fix-paste-on-youtube
Requires Scriptish/Greasemonkey.
YouTube's comment form is the classic case for using a textarea. But instead, YouTube uses a `contenteditable` div. 

One workaround is to instruct the user to use the DOM inspector to modify the div's textContent. 


1) Right Click on the comment area and choose "Inspect element" 
   When the inspector opens, the comment element is selected in the HTML tab
2) Right click that element in the HTML tab.
3) Choose "Show DOM Properties"
4) When the DOM properties open, scroll down to "textContent"
5) Paste your text into the value for "textContent". Be sure to escape newlines and quotation marks with a preceeding backslash, \.

How to Paste into YouTube Comments 
https://www.youtube.com/watch?v=xUUBT9QBJVQ
I can paste the text on Edge, Opera, and Chrome. IE and Firefox does not work.
problem still persist as of 2018/05 FFdev 61.0b6 (64-bit)
Component: Editor → Desktop
Product: Core → Tech Evangelism
Version: 39 Branch → Firefox 39
(In reply to AndriuZ from comment #19)
> problem still persist as of 2018/05 FFdev 61.0b6 (64-bit)

AndriuZ, Could you report this to https://webcompat.com/ as new issue although workaround is comment #4?  Original issue might be fixed by https://webcompat.com/issues/1655, but this might be new issue.
See Also: → 1466391
Product: Tech Evangelism → Web Compatibility
You need to log in before you can comment on or make changes to this bug.