Open
Bug 1294959
Opened 8 years ago
Updated 2 years ago
Cannot copy over 1000 characters in CodeMirror if dom.event.clipboardevents.enabled is set to false
Categories
(Core :: DOM: Copy & Paste and Drag & Drop, defect, P5)
Tracking
()
People
(Reporter: l.tennant, Unassigned)
References
Details
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:48.0) Gecko/20100101 Firefox/48.0
Build ID: 20160728203720
Steps to reproduce:
1. Set dom.event.clipboardevents.enabled to disabled.
2. Go to a website with a large input field like http://jsbeautifier.org/
3. Try to copy over 1000 characters from this field to another application.
Actual results:
A single dash appears.
Expected results:
The data should have been pasted as normal.
OS: Unspecified → Linux
Hardware: Unspecified → x86_64
Summary: Disabling dom.event.clipboardevents.enabled means pasted input from input fields has a 1000-character limit → Disabling dom.event.clipboardevents.enabled means pasted input has a 1000-character limit
See also this post from 11 months ago which describes the same problem: https://www.reddit.com/r/firefox/comments/3htqfb/copying_too_much_text_in_some_text_editors_only/?st=irt680xv&sh=11f72149
Comment 2•8 years ago
|
||
I can reproduce this issue on Mozilla/5.0 (Windows NT 6.3; WOW64; rv:51.0) Gecko/20100101 Firefox/51.0
Regression Range:
Good 2012-02-14
Bad 2012-02-15
Status: UNCONFIRMED → NEW
status-firefox48:
--- → wontfix
status-firefox49:
--- → affected
status-firefox50:
--- → affected
status-firefox51:
--- → affected
Component: Untriaged → Preferences
Ever confirmed: true
OS: Linux → All
Hardware: x86_64 → All
Version: 48 Branch → 13 Branch
Comment 3•8 years ago
|
||
It looks like the codemirror editor code being used here uses some hackery to make the actual focus and selection and the visual selection different, and thus, the actual selection is just '-' when the text is over 1000 characters. Chrome also has the value '-' for the focused textbox, but some implementation detail causes it to retrieve the expected value when copying. I don't know what that detail is and it would be better if the CodeMirror developers investigate this.
Updated•3 years ago
|
Severity: normal → S3
Component: Preferences → DOM: Copy & Paste and Drag & Drop
Priority: -- → P5
Product: Firefox → Core
Summary: Disabling dom.event.clipboardevents.enabled means pasted input has a 1000-character limit → Cannot copy over 1000 characters in CodeMirror if dom.event.clipboardevents.enabled is set to false
Comment 4•2 years ago
|
||
Discord. com presents a similar issue
Updated•2 years ago
|
status-firefox115:
--- → affected
You need to log in
before you can comment on or make changes to this bug.
Description
•