Closed Bug 1832710 Opened 2 years ago Closed 2 years ago

Shift+Ctrl+V in Slack's message editor pastes two copies of the clipboard text (also Gmail, Google Calendar & Chat, etc)

Categories

(Core :: DOM: Editor, defect, P1)

Unspecified
All
defect

Tracking

()

VERIFIED FIXED
115 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox113 --- unaffected
firefox114 --- unaffected
firefox115 + verified
firefox116 --- verified

People

(Reporter: cpeterson, Assigned: masayuki)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

Masayuki, this bug is a regression from your fix for bug 1815969. I bisected this regression to this pushlog:

https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=0e5722e588dfcf4b62e3d34ea5b96139d10c0453&tochange=55c1f2ce765b4df00a8b676bda791f0fcfa0ad90

Steps to reproduce

  1. Open Slack in Firefox 115.
  2. Copy some text to your clipboard, such as the word test.
  3. Focus Slack's message editor.
  4. Shift+Ctrl+V to paste the clipboard text. Shift+Ctrl+V is a keyboard short that commonly pastes clipboard text without any rich text formatting that may have been copied.

Expected behavior

test

In Firefox 114 and Chrome, Shift+Ctrl+V pastes the clipboard text. In Safari, Shift+Ctrl+V doesn't paste anything, which seems like a different bug.

Actual behavior

testtest

In Firefox 115, Shift+Ctrl+V pastes two copies of the clipboard text.

Flags: needinfo?(masayuki)

I can reproduce this bug on Windows and macOS. I haven't tested Linux.

OS: Unspecified → All

Thank you for catching the regression! Taking a look...

Assignee: nobody → masayuki
Severity: -- → S2
Status: NEW → ASSIGNED
Flags: needinfo?(masayuki)
Priority: -- → P1

I can reproduce this same issue on various Google products, specifically for textareas that support text formatting, like:

  • Google chat
  • Gmail compose view (the message body area)
  • Google Calendar, event description field (not the event title field)
Summary: Shift+Ctrl+V in Slack's message editor pastes two copies of the clipboard text → Shift+Ctrl+V in Slack's message editor pastes two copies of the clipboard text (also Gmail)
Summary: Shift+Ctrl+V in Slack's message editor pastes two copies of the clipboard text (also Gmail) → Shift+Ctrl+V in Slack's message editor pastes two copies of the clipboard text (also Gmail, Google Calendar & Chat, etc)
Pushed by masayuki@d-toybox.com: https://hg.mozilla.org/integration/autoland/rev/7176a7cccb3f Make `EditorBase::DispatchClipboardEventAndUpdateClipboard` handle `ePasteNoFormatting` event message r=m_kato
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch

Reproducible on a 2023-05-11 Nightly build on macOS 12 on Slack.
Verified as fixed on Firefox 115.0b4(build ID: 20230611180300) and Nightly 116.0a1(build ID: 20230612211509) on macOS 12, Windows 10, Ubuntu 22, on Slack.
Shift + CTRL/CMD + C now pastes only one copy of the clipboard text.

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

Attachment

General

Created:
Updated:
Size: