Open Bug 1945434 Opened 10 days ago Updated 8 days 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 Priority:P2, Webcompat Score:7, firefox134 affected, firefox136 affected)

Webcompat Priority P2
Webcompat Score 7
Tracking Status
firefox134 --- affected
firefox136 --- affected

People

(Reporter: rbucata, Unassigned)

References

(Depends on 1 open bug, )

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

(1 file)

Environment:
Operating system: Mac OS X 10.15
Firefox version: Firefox 134.0

Steps to reproduce:

  1. 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]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: