-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
web.whatsapp.com - Unable to paste text copied from certain sources into the message box (e.g. notepad) #125920
Comments
Thank you for reporting this issue, I was able to reproduce it. paste.text.mp4Tested on: Notes:
Moving to Needsdiagnosis. [qa_33/2023] |
Thanks for the report! I confirmed that this is a recent regression and spent an afternoon looking into it. The fix has landed and should be deployed on Monday :) This was an interesting bug so I figured I'd explain the fix below for anyone interested: the issue boiled down to an async wrapper we had over the DataTransfer constructor that we were using to check osme other things before handling the DT. We were doing something like: const data = event.clipboardData;
let text = data.getData(MIMETYPE_1);
await SomePromise();
if (text == null) {
text = data.getData(MIMETYPE_2);
}
... In this case The issue was that by calling The fix was to run both checks at the same time before calling any async code so the data would be preserved: Aka: const data = event.clipboardData;
let textOne = data.getData(MIMETYPE_1);
let textTwo = data.getData(MIMETYPE_2);
await SomePromise();
let text = textOne;
if (text == null) {
text = textTwo;
}
... |
Thanks so much for the investigation and the in-flight fix, @Egrodo. This almost sounds like something going wrong inside Firefox. From what you describe, I would be surprised, too. I'll investigate our behavior here soon, maybe we can change something on our end to make this less surprising. |
Anytime! If it helps, Stackoverflow questions like this (datatransfer items not persisting through async calls) helped me find the solution, so seems this behavior has been around for 4 years at least. Definitely would be helpful if this were fixed, thanks for the follow-up! |
This comment was marked as outdated.
This comment was marked as outdated.
Thanks! what else that line does?? just in case haha |
The issue is also discussed on Superuser: https://superuser.com/questions/1804661/firefox-doesnt-allow-to-paste-into-whatsapp-web-anymore |
It was just resolved to me, Whatsapp web prompted me to refresh to update. After that I can paste normally again. |
Yes it works now ..yay. |
Still not working for me after update (to 117.0) :-( Cannot paste anything to WhatsApp web But oddly, another problem I had - the inability to open the web site https://www.merriam-webster.com/games/quordle/#/ (which problem the folks here had been unable to reproduce) is now working!! |
This comment was marked as abuse.
This comment was marked as abuse.
Seems to be fixed with latest update, can now paste both text and images with no config changes in Firefox. Should this issue be closed? |
NO, do not close the issue. Some very strange behavior is happening... The latest update had fixed the issue for some, but not for others - (I'm one of the others). Even after re-boot -- I didn't know why it's working for some but still broken for others |
I'm locking this issue, as nobody seemed to care about my previous comment where I said
we don't need additional reports about this, and WhatsApp is rolling out a fix as stated multiple time. This isn't related to any specific Firefox version or Firefox update. It'll start working again once you've received the WhatsApp update. Please don't file another reports about paste-issues on WhatsApp - be patient until they have fully rolled out the patch. @Egrodo if you want to continue figuring out the internals here, please email me to |
URL: https://web.whatsapp.com/
Browser / Version: Firefox 116.0
Operating System: Windows 11
Tested Another Browser: Yes Chrome
Problem type: Something else
Description: I often copy and paste into WhatsApp from Windows 11 in Firefox. It has stopped working. I cannot paste into WhatsApp Web now.
Steps to Reproduce:
I had no problem copying and pasting into whatsapp web in Chrome
Browser Configuration
From webcompat.com with ❤️
The text was updated successfully, but these errors were encountered: