Bug 482056

Summary: In Chromium-based apps, multiple copies of the same entry are added to the clipboard when selecting for copy/paste
Product: [Plasma] plasmashell Reporter: Andre Goree <andre>
Component: Clipboard widget & pop-upAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: bugseforuns, nate, nicolas.fella, notmart, swipe650
Priority: NOR Keywords: qt6
Version First Reported In: 6.0.0   
Target Milestone: 1.0   
Platform: Neon   
OS: Linux   
URL: https://issues.chromium.org/issues/329330874
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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