gemini.google.com - Copy does not work from the text input box when editing a prompt
Categories
(Web Compatibility :: Site Reports, defect, P2)
Tracking
(Webcompat Score:8, Webcompat Priority:P2, firefox134 wontfix, firefox136 wontfix, firefox137 wontfix, firefox138 wontfix, firefox139 fixed, firefox140 fixed)
People
(Reporter: rbucata, Unassigned)
References
()
Details
(Keywords: webcompat:platform-bug, webcompat:site-report, Whiteboard: [webcompat-source:web-bugs][webcompat:sightline])
User Story
platform:windows,mac,linux,android impact:feature-broken configuration:general affects:all branch:release diagnosis-team:dom user-impact-score:600
Attachments
(3 files)
Environment:
Operating system: Mac OS X 10.15
Firefox version: Firefox 134.0
Steps to reproduce:
- Navigate to: https://gemini.google.com/ and enter a prompt
- Hover over the text and click on the "Edit" button
- Copy the text
- Paste and observe
Expected Behavior:
Text is pasted
Actual Behavior:
Copy does not work from the text input box when editing a prompt
Notes:
- Reproduces regardless of the status of ETP
- Reproduces in firefox-nightly, and firefox-release
- Does not reproduce in chrome
- "Cut" works as expected
Created from https://github.com/webcompat/web-bugs/issues/147850
Reporter | ||
Updated•7 months ago
|
Reporter | ||
Comment 1•7 months ago
|
||
Updated•7 months ago
|
![]() |
||
Comment 3•7 months ago
|
||
FWIW,
Copy
works as expected if set dom.event.clipboardevents.enabled
to false
.
Comment 4•7 months ago
|
||
Apparently this site does the same thing as https://bugzilla.mozilla.org/show_bug.cgi?id=1902004
It has code like
_.Sy(this.document, 'copy').pipe(_.dD(this.nb)).subscribe(
function (c) {
var d = a.Qb,
e = d.document.getSelection(),
f,
g = (f = e == null ? void 0 : e.getRangeAt(0)) == null ? void 0 : f.cloneContents();
if (e && g) {
d = d.document.createElement('div');
d.appendChild(g);
var h;
(h = c.clipboardData) == null ||
h.setData('text/html', d.innerHTML);
var l;
(l = c.clipboardData) == null ||
l.setData('text/plain', e.toString())
}
c.preventDefault()
}
where it listens for "copy" event, get the current selection, and execute selection.toString()
to get the content. If it works, l.setData('text/plain', e.toString())
is supposed to set the content to the clipboard.
Updated•7 months ago
|
Updated•6 months ago
|
The issue has been fixed.
Tested with:
Browser / Version: Firefox Nightly 138.0a1 (2025-03-24)
Operating System: Windows 10
Comment 7•5 months ago
|
||
Since nightly and release are affected, beta will likely be affected too.
For more information, please visit BugBot documentation.
Updated•5 months ago
|
Comment 8•4 months ago
|
||
The issue is still reproducible with the RC build.
Tested with:
Browser / Version: Firefox 138.0-candidate build 1
Operating System: Windows 10/MacOS
Updated•4 months ago
|
Updated•4 months ago
|
![]() |
||
Comment 9•4 months ago
|
||
Because, dom.selection.mimic_chrome_tostring.enabled is true in NIGHTLY_BUILD only.
Comment 10•4 months ago
|
||
Yeah, 139 will have it.
Comment 11•4 months ago
|
||
This is fixed in 139, so moving back to fixed
Comment 12•3 months ago
|
||
Verified but the issue is still reproducible with the RC build. When pasting the copied text it displays different data.
Tested with:
- Browser / Version: Firefox 139.0-candidate build 1
- Operating System: Windows 10
Updated•3 months ago
|
Updated•3 months ago
|
Comment 13•3 months ago
|
||
hmm, this looks like a different issue than the original bug post.
The original bug was about doing the paste in that "Edit" text area, which has been fixed by bug 1954979.
Looks like we still got an issue for doing the paste in the user input area.
I'll spin up a new bug for that.
Comment 14•2 months ago
|
||
Verified and not reproducible
Browser : Firefox 140.0 - RC
OS: macOS Sequoia 15.5
Updated•2 months ago
|
Description
•