Can't copy text from disabled textarea or text input.
Categories
(Core :: DOM: Editor, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox76 | --- | fixed |
People
(Reporter: mozilla, Assigned: emilio, Mentored, NeedInfo)
References
()
Details
Attachments
(1 file, 2 obsolete files)
Comment 1•21 years ago
|
||
| Reporter | ||
Comment 2•21 years ago
|
||
Comment 3•20 years ago
|
||
Comment 10•12 years ago
|
||
Comment 11•11 years ago
|
||
Comment 12•11 years ago
|
||
Comment 13•10 years ago
|
||
Comment 14•10 years ago
|
||
Comment 15•10 years ago
|
||
Comment 16•10 years ago
|
||
Comment 17•9 years ago
|
||
Comment 18•9 years ago
|
||
Comment 19•9 years ago
|
||
Comment 20•9 years ago
|
||
Comment 21•9 years ago
|
||
Comment 22•9 years ago
|
||
Comment 23•8 years ago
|
||
Comment 24•7 years ago
|
||
Comment 25•7 years ago
|
||
Comment 26•7 years ago
|
||
Comment 27•7 years ago
|
||
Comment 28•7 years ago
|
||
| Assignee | ||
Comment 29•7 years ago
|
||
| Assignee | ||
Comment 30•7 years ago
|
||
| Assignee | ||
Comment 31•7 years ago
|
||
Comment 32•7 years ago
|
||
Comment 33•7 years ago
|
||
Similar issue but with another tag <script type="text/plain">: https://bugzilla.mozilla.org/show_bug.cgi?id=1535392
May it would help to resolve this long standing issue.
The only difference between bugs, is that in case of disabled text/texarea tags - firefox disallows even to select content, while with <script type="text/plain">, firefox allows to select and copy, but if one would try to paste copied content, he/she will paste nothing.
| Comment hidden (advocacy) |
Comment 36•6 years ago
|
||
(In reply to gnopap from comment #35)
16 Years and counting. Sorry but LOL! Seems FF is becoming the new IE with weird behaviour forcing devs to do specul workarounds.
Closing tickets and +1 as if that is somehow easier than to bloody fix that absolutely trivial issue.
I'm sorry I might have been a little indignant. If I could I would delete this comment. I really do appreciate making FF possible.
<3
Comment 37•6 years ago
|
||
+1 for a fix, this is making our users stay on other browsers.
| Assignee | ||
Comment 38•6 years ago
|
||
I gave this a shot out of curiosity.
(In reply to gnopap from comment #35)
Closing tickets and +1 as if that is somehow easier than to bloody fix that absolutely trivial issue.
This happens to be not-so-trivial, actually. <input disabled> is not allowed to take focus per spec, and our editor code mostly works when the input is focused (which is true for every other input). Anyhow I think I have a patch that may work. But let's see what others think.
| Assignee | ||
Comment 39•6 years ago
|
||
Tests needed, of course... This matches other browsers modulo one thing, which
is that if you have something like:
<input disabled value="abc"> def
And select abc, then def we don't hide the selection from the <input>,
because that's usually the job of the EditorEventListener's blur handler via
setting the selection to SELECTION_HIDDEN.
I have an alternative approach for that incoming, and I'd like your feedback on
that.
| Assignee | ||
Comment 40•6 years ago
|
||
When the selection changes, clear the old one instead of hiding it using
SELECTION_HIDDEN.
I think this is slightly better than what we were doing, and fixes the use case
of <input disabled>, wdyt?
Depends on D66464
| Assignee | ||
Comment 41•6 years ago
|
||
I was testing above selecting text, naively thinking copying would just work...
Hopefully fixing it is trivial, and also cleans up a bunch of code.
Tests still needed, will send in a separate patch.
Depends on D66465
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Comment 42•6 years ago
|
||
Comment 43•6 years ago
|
||
Backed out changeset 9eeee9ec66d9 for causing failures in browser_bug1261299.js
Backout link: https://hg.mozilla.org/integration/autoland/rev/0dd184191288d3bcbababfde28af171afbab74a1
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=293382638&repo=autoland&lineNumber=1511
Comment 44•6 years ago
|
||
| Assignee | ||
Updated•6 years ago
|
Comment 45•6 years ago
|
||
| bugherder | ||
Comment 47•5 years ago
|
||
Hi,
I can still replicate the issue if the page contains another contenteditable element.
Minimal reproduction page: https://codesandbox.io/s/condescending-hermann-8zttt?file=/index.html:375-390
I filed it as a separate bug report at https://bugzilla.mozilla.org/show_bug.cgi?id=1664114 :)
Comment 48•5 years ago
|
||
I'm still facing this on Firefox 84
| Assignee | ||
Comment 49•5 years ago
|
||
(In reply to mateush.honorato from comment #48)
I'm still facing this on Firefox 84
Can you file a new bug with a test-case that reproduces it?
Description
•