Because Firefox does not allow/support clipboard access through JavaScript. Microsoft decided to apply this workaround on all of their web software. Unfortunately, this one is for Mozilla to fix.
Well, I'm on Windows11 with Firefox at work, and can cobfirm that Ctrl v and Ctrl Shfi v both works as described in the post when I copy from old outlook and past into an Azure ticket.
The issue is, as explained in your link, because websites what a fucking access with JS to the clipboard. Firefox rightly protect us from the websites just looking to our copied password.
If the website just did nothing it would work by default. But they feel the needs to capture right click, and all Ctrl * shortcut to re-implement them in JS. A few years ago their webapp even broke next/previous buttons (that exist near the reload button and are binded on most mouse) all so they won't show they are loading the next page to the user.
TL;DR webdev are lazy, clumsy especially in large Corp.
They implemented the workaround on all of their web apps, probably poorly tested. But it does make sense after all. It is annoying but it works everywhere. We Firefox users are a minority, and they have little incentive to spend resources on us.
Anyways, imho this issue in particular should be fixed by Mozilla. Microsoft can implement workarounds, but I think the real solution is implementing JavaScript clipboard access API. Firefox can show the usual "This website is trying to access your clipboard. [Allow] [Reject] [Always reject]" message, and I would say that would be safe enough.
Which workarous? They just want JS access to the clipboard and it is rightfully blocked by Firefox.
The correct workaround is to not use JS to access the clipboard and suddenly everything work as intetended as if the browser already does the right thing.
Do nothing and it works, some call that magic 🌌
I was told it was added for security, so the user would have to confirm pasting to avoid certain exploits. 🤷
No idea if that's true.
It can be turned off in Firefox. I had to, as I work in google docs a lot and it was Winding me up.
about:config has a flag for it.
If you can't find it, let me know and I'll look up which one I changed
General Programming Discussion
A general programming discussion community.
Rules:
- Be civil.
- Please start discussions that spark conversation