Closed Bug 1945434 Opened 7 months ago Closed 3 months ago

gemini.google.com - Copy does not work from the text input box when editing a prompt

Categories

(Web Compatibility :: Site Reports, defect, P2)

Desktop
All

Tracking

(Webcompat Score:8, Webcompat Priority:P2, firefox134 wontfix, firefox136 wontfix, firefox137 wontfix, firefox138 wontfix, firefox139 fixed, firefox140 fixed)

VERIFIED FIXED
138 Branch
Webcompat Score 8
Webcompat Priority P2
Tracking Status
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:

  1. Navigate to: https://gemini.google.com/ and enter a prompt
  2. Hover over the text and click on the "Edit" button
  3. Copy the text
  4. 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

Attached video Chr vs FF
Severity: -- → S2
User Story: (updated)
Webcompat Priority: --- → P2
Webcompat Score: --- → 7
Priority: -- → P2

I can reproduce the issue on Nightly136.0a1 Windows11.

OS: macOS → All

FWIW,
Copy works as expected if set dom.event.clipboardevents.enabled to false.

Blocks: 542938

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.

Whiteboard: [webcompat-source:web-bugs] → [webcompat-source:web-bugs][webcompat:sightline]
Webcompat Score: 7 → 8

The issue has been fixed.

Tested with:

Browser / Version: Firefox Nightly 138.0a1 (2025-03-24)
Operating System: Windows 10

Status: NEW → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED

Since nightly and release are affected, beta will likely be affected too.
For more information, please visit BugBot documentation.

The issue is still reproducible with the RC build.

Tested with:

Browser / Version: Firefox 138.0-candidate build 1
Operating System: Windows 10/MacOS

Status: RESOLVED → REOPENED
Resolution: FIXED → ---

Because, dom.selection.mimic_chrome_tostring.enabled is true in NIGHTLY_BUILD only.

Yeah, 139 will have it.

Depends on: 1954979

This is fixed in 139, so moving back to fixed

Status: REOPENED → RESOLVED
Closed: 5 months ago4 months ago
Resolution: --- → FIXED

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
Status: RESOLVED → REOPENED
Resolution: FIXED → ---

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.

Status: REOPENED → RESOLVED
Closed: 4 months ago3 months ago
Resolution: --- → FIXED
See Also: → 1967510

Verified and not reproducible

Browser : Firefox 140.0 - RC
OS: macOS Sequoia 15.5

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: