Copy to clipboard doesn't work on some sites (only copies a single line-separator character)
Categories
(Core :: DOM: Events, defect)
Tracking
()
People
(Reporter: asoroudi, Unassigned)
References
Details
User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:83.0) Gecko/20100101 Firefox/83.0
Steps to reproduce:
- onlinejsoneditor.com
- Type some stuff in the textarea element
- Select the text
- Copy it (using whatever method you want, it doesn't matter)
Actual results:
The clipboard only contains a single Line-Separator character (U+2028)
Expected results:
The text should have been copied to the clipboard, but it only puts a single line-separator character in the clipboard. I've seen this behavior on various sites, but have not yet noticed a patter (it doesn't seem to be limited to any specific element).
This is incredibly frustrating because it means there's no reasonably easy way to copy text; you can try to drag-and-drop it but that doesn't always work (especially since Firefox has a problem with focus/window-activation while dragging).
Comment 1•5 years ago
|
||
Hey synetech,
I tried reproducing this issue on the latest versions of Firefox Nightly 86.0a1 (2021-01-04), beta 85.0b4 and release 84.0.1 but the copy option worked without issues for me.
Can you test the issue while in Safe Mode? You can find helpful info here : https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode .
Also a fresh new profile could help. You can find more about creating a new profile here : https://support.mozilla.org/en-US/kb/troubleshoot-and-diagnose-firefox-problems#w_6-create-a-new-firefox-profile .
If possible, you can test this issue on the nightly build as well. Download the build from : https://www.mozilla.org/en-US/firefox/nightly/all/ .
It works with a fresh profile. It doesn't work from my normal profile even if I disable all addons. 🤔
It turns out it's the dom.event.clipboardevents.enabled setting. If it's set to False, then copying text from form fields doesn't work on some sites (and will just put a single line-separator character in the clipboard). Setting it to the default of True, gives sites the ability spy on what text we copy or even blocking us from being able to paste text.
https://developer.mozilla.org/en-US/docs/Mozilla/Preferences/Preference_reference/dom.event.clipboardevents.enabled
https://www.howtogeek.com/251807/how-to-enable-pasting-text-on-sites-that-block-it/
This is no good. We shouldn't have to allow sites to spy on us and control what we can do with the clipboard in order to use it at all. 😕
Comment 4•5 years ago
|
||
Was able to reproduce this issue changing the given pref to False on Nightly 86.0a1 (2021-01-11), beta 85.0b7 and release 84.0.2.
I could even reproduce this issue on Fx 72.0 so this is not a recent regression.
Updating flags and setting a component for this issue in order to get the dev team involved.
If you feel it's an incorrect one please feel free to change it to a more appropriate one.
After updating to FF90 I was unable to paste a formatted text into certain feature rich textbox (work related). The workaround was to set "dom.event.clipboardevents.enabled" to false.
However, this seems to break Google Docs similar to OP's situation. Copying anything on Docs will just copy a single line separator, and I also cannot paste anything in Docs.
(In reply to kzyswd from comment #5)
After updating to FF90 I was unable to paste a formatted text into certain feature rich textbox (work related). The workaround was to set "dom.event.clipboardevents.enabled" to false.
It seems that's a bug of the page containing the feature rich textbox.
However, this seems to break Google Docs similar to OP's situation. Copying anything on Docs will just copy a single line separator, and I also cannot paste anything in Docs.
Description
•