Bug 435220

Summary: Cannot paste text copied from firefox outside firefox in wayland session
Product: [Plasma] plasmashell Reporter: smit <smit17xp>
Component: ClipboardAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal CC: bugs-kde, heri+kde, kiril, liubomirwm, nate, philipp.reichmuth, smit17xp
Priority: NOR Keywords: wayland
Version: 5.23.2   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description smit 2021-04-01 14:24:31 UTC
SUMMARY

As title says, I cannot paste text copied from firefox to other apps. pasting it in Firefox work but not outside. also text copied from other apps can be pasted into Firefox but not other way around. 

Sorry, I can't reproduce this. but after some time it always happen. Workaround is to restart the Firefox and everything works fine for sometime until it happens again.

STEPS TO REPRODUCE
1. Start Plasma Wayland session
2. Start Firefox as native wayland client with GDK_BACKEND=wayland
3. Browse for sometime

OBSERVED RESULT

Coping text in firefox and pasting in other app does not works


EXPECTED RESULT

Coping text in firefox and pasting in other app works

SOFTWARE/OS VERSIONS
OS: ArchLinux
(available in About System)
KDE Plasma Version: 5.21.3
KDE Frameworks Version: 5.80.0
Qt Version: 5.15.2
Comment 1 Kiril Vladimirov 2021-05-14 08:47:42 UTC
I can also reproduce this... occasionally. It's frustrating when it happens (dragging also doesn't work), but it's pretty hard to make a reproducible case. It _starts_ to happen sometimes, at some point. Restarting klipper and/or plasmashell doesn't seem to help. Logout->login fixes it for a while.

What info should be gathered, when it starts to happen, in order for this to get tracked down?
Comment 2 Nate Graham 2021-05-14 15:10:20 UTC
Ah, this. It's fixed in Plasma 5.22, thankfully.
Comment 3 smit 2021-06-11 15:28:01 UTC
Unfortunately, its still not fixed. I just bumb into this bug on 5.22.0
Comment 4 Nate Graham 2021-06-14 14:10:30 UTC
Are you sure Firefox is running as a native Wayland app? I can reproduce this issue when it's running as XWayland (it's Bug 424754) but not when it's running in native Wayland mode.
Comment 5 smit 2021-06-14 16:46:55 UTC
(In reply to Nate Graham from comment #4)
> Are you sure Firefox is running as a native Wayland app

Yes. I'm sure. 

Also I forcefully spend one day in swaywm to check if this bugs occurs in swaywm and it didn't
Comment 6 Nate Graham 2021-06-14 22:02:33 UTC
Darn. Works for me, FWIW.
Comment 7 Dennis Schridde 2021-06-26 10:27:32 UTC
Copying & pasting from Firefox 89 to another application (tried Signal in Flatpak, but also KMail) does not work for me, either.  The text does not even appear in Klipper.


Operating System: Gentoo Linux
KDE Plasma Version: 5.22.1
KDE Frameworks Version: 5.83.0
Qt Version: 5.15.2
Kernel Version: 5.12.13 (64-bit)
Graphics Platform: Wayland
Processors: 8 × AMD Ryzen 5 2400G with Radeon Vega Graphics
Memory: 13,5 GiB of RAM
Graphics Processor: AMD Radeon™ Vega 11 Graphics


Application Basics
------------------

Name: Firefox
Version: 89.0.2
Build ID: 20210625021202
Distribution ID: gentoo
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0
OS: Linux 5.12.13 #1 SMP PREEMPT Thu Jun 24 22:41:31 CEST 2021
Multiprocess Windows: 6/6
Fission Windows: 6/6 Enabled by user
Remote Processes: 33
Enterprise Policies: Active
Google Location Service Key: Found
Google Safebrowsing Key: Found
Mozilla Location Service Key: Found
Safe Mode: false

[...]

Graphics
--------

Features
Compositing: WebRender
[...]
Window Protocol: wayland
Desktop Environment: kde
[...]
Comment 8 Dennis Schridde 2021-06-26 10:37:47 UTC
Other things I noticed: After the monitor goes into standby (i.e. long after the screen is locked), and then I move the mouse or press a key to make the monitor return to life, the screen is just black with the mouse cursor.  Pressing keys or moving the mouse does not make it show the unlock screen.  Maybe something crashed?  But the usual "the lock screen crashed, press Alt+Fx to switch to a console" text does not show...  And according to `systemctl --user`, all Plasma services are still running...

BTW: I ran `kwriteconfig5 --file startkderc --group General --key systemdBoot true` to test the new systemd-based startup, as described in David's blog: https://blog.davidedmundson.co.uk/blog/plasma-and-the-systemd-startup/
Comment 9 phrxmd 2021-11-13 14:47:30 UTC
For what it's worth, I have this problem now with Plasma 5.23.2. I select text in Firefox 93, hit Ctrl+C and it doesn't appear in Klipper. Some time ago it worked, so the issue seems to be transient, but it's definitely still there.

Other issues noticeable at the moment:
- Firefox does not show the global menu
- I see several Firefox processes in `ps ax | grep firefox` , but `killall firefox` says "process not found":
```
> ps ax | grep firefox
 7065 ?        Sl    40:40 /usr/lib64/firefox/firefox -contentproc -childID 8 -isForBrowser -prefsLen 6484 -prefMapSize 256017 -jsInit 286204 -parentBuildID 20210927210923 -appdir /usr/lib64/firefox/browser 19148 true tab
19148 ?        Sl    90:52 /usr/lib64/firefox/firefox
19231 ?        Sl     0:10 /usr/lib64/firefox/firefox -contentproc -parentBuildID 20210927210923 -prefsLen 1 -prefMapSize 256017 -appdir /usr/lib64/firefox/browser 19148 true socket
19319 ?        Sl     1:00 /usr/lib64/firefox/firefox -contentproc -childID 2 -isForBrowser -prefsLen 5348 -prefMapSize 256017 -jsInit 286204 -parentBuildID 20210927210923 -appdir /usr/lib64/firefox/browser 19148 true tab
19377 ?        Sl     1:29 /usr/lib64/firefox/firefox -contentproc -childID 3 -isForBrowser -prefsLen 5983 -prefMapSize 256017 -jsInit 286204 -parentBuildID 20210927210923 -appdir /usr/lib64/firefox/browser 19148 true tab
19861 ?        Sl     0:09 /usr/lib64/firefox/firefox -contentproc -childID 103 -isForBrowser -prefsLen 11209 -prefMapSize 256017 -jsInit 286204 -parentBuildID 20210927210923 -appdir /usr/lib64/firefox/browser 19148 true tab
19904 ?        Sl     1:20 /usr/lib64/firefox/firefox -contentproc -childID 104 -isForBrowser -prefsLen 11209 -prefMapSize 256017 -jsInit 286204 -parentBuildID 20210927210923 -appdir /usr/lib64/firefox/browser 19148 true tab
20051 ?        Sl     0:29 /usr/lib64/firefox/firefox -contentproc -childID 105 -isForBrowser -prefsLen 11209 -prefMapSize 256017 -jsInit 286204 -parentBuildID 20210927210923 -appdir /usr/lib64/firefox/browser 19148 true tab
20088 ?        Sl     0:31 /usr/lib64/firefox/firefox -contentproc -childID 106 -isForBrowser -prefsLen 11209 -prefMapSize 256017 -jsInit 286204 -parentBuildID 20210927210923 -appdir /usr/lib64/firefox/browser 19148 true tab
29548 ?        Sl     6:25 /usr/lib64/firefox/firefox -contentproc -childID 74 -isForBrowser -prefsLen 11250 -prefMapSize 256017 -jsInit 286204 -parentBuildID 20210927210923 -appdir /usr/lib64/firefox/browser 19148 true tab
29816 pts/2    S+     0:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox firefox
31137 ?        Sl     5:45 /usr/lib64/firefox/firefox -contentproc -childID 88 -isForBrowser -prefsLen 11264 -prefMapSize 256017 -jsInit 286204 -parentBuildID 20210927210923 -appdir /usr/lib64/firefox/browser 19148 true tab
32271 ?        Sl    27:11 /usr/lib64/firefox/firefox -contentproc -childID 99 -isForBrowser -prefsLen 11241 -prefMapSize 256017 -jsInit 286204 -parentBuildID 20210927210923 -appdir /usr/lib64/firefox/browser 19148 true tab
> killall firefox
firefox: no process found
```

This is with Firefox 93.0-80.3 and Plasma 5.23.2 on OpenSUSE Tumbleweed.
Comment 10 Lyubomir 2021-12-22 21:33:30 UTC
Bug https://bugs.kde.org/show_bug.cgi?id=447100 is related?
Comment 11 Nate Graham 2022-01-12 17:15:57 UTC
Some more clipboard fixes have gone into Plasma 5.24; can anyone check with current git master or the Plasma 5.24 beta which is being released tomorrow? It's working 100% for me now.
Comment 12 Bug Janitor Service 2022-01-27 04:37:44 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 13 Bug Janitor Service 2022-02-11 04:37:20 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!