Bug 482056 - In Chromium-based apps, multiple copies of the same entry are added to the clipboard when selecting for copy/paste
Summary: In Chromium-based apps, multiple copies of the same entry are added to the cl...
Status: RESOLVED UPSTREAM
Alias: None
Product: plasmashell
Classification: Plasma
Component: Clipboard widget & pop-up (show other bugs)
Version: 6.0.0
Platform: Neon Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL: https://issues.chromium.org/issues/32...
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-02-29 16:28 UTC by Andre Goree
Modified: 2024-03-13 16:16 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andre Goree 2024-02-29 16:28:26 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

Multiple entries for the same item are added to the clipboard when highlighting for copy/paste, possibly due to the clipboard copying after every space(?).  Only seems to happen from browser (I use Vivaldi), Konsole highlight+copy/paste works as desired (only one entry).


STEPS TO REPRODUCE
1. Highlight a block of text
2. View clipboard
3. See multiple entries of the same item

OBSERVED RESULT
Multiple entries for an item

EXPECTED RESULT
One entry for the item after releasing mouse for highlight

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma:  Neon
(available in About System)
KDE Plasma Version:  plasmashell 6.0.0
KDE Frameworks Version:  KDE Frameworks: 5.115.0
Qt Version:  Qt: 5.15.12

ADDITIONAL INFORMATION
Comment 1 Patrick Silva 2024-03-01 14:00:47 UTC
Can reproduce with Vivaldi running natively on Wayland if "Text select: Always save in history" is selected in  Clipboard applet settings.

Operating System: Arch Linux 
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Graphics Platform: Wayland
Comment 2 Nate Graham 2024-03-01 19:42:00 UTC
I can't reproduce the issue by selecting text in Firefox or Kate (both Native Wayland apps) with those settings. Can you screenshot your config window so I can be sure I'm testing it the same way?
Comment 3 Kerr Avon 2024-03-13 08:32:18 UTC
I can replicate the issue on Wayland in both Google Chrome and Chromium, but not in Kate.
Comment 4 Marco Martin 2024-03-13 09:38:44 UTC
what i can kinda replicate, is that when the user is selecting text with the mouse it's pushing in the clipboard history every single string in the process, ie, if i select dragging with the mouse the string "hello", i will have in the history ["hello", "hell", "hel", "he", "h"]
Comment 5 Marco Martin 2024-03-13 09:42:32 UTC
and yes, it seems specific to chromium (and derivatives) only when using native wayland ozone-platform-hint
Comment 6 Marco Martin 2024-03-13 13:15:25 UTC
Upstream Chromium bug: https://issues.chromium.org/issues/329330874