[greeter] Clear clipboard on show

Authored by graesslin on Feb 17 2017, 3:23 PM.



As we have a feature to show the password it would be possible for an
unauthorized user to get access to the clipboard.

To prevent this, the clipboard gets cleared when we have the window
shown. This is late enough on Wayland to be able to clear the clipboard.

BUG: 376526
FIXED-IN: 5.10

Test Plan

On Wayland, paste is no longer possible. X11 is untested,
there klipper might restore clipboard content.

Diff Detail

R133 KScreenLocker
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.
graesslin updated this revision to Diff 11454.Feb 17 2017, 3:23 PM
graesslin retitled this revision from to [greeter] Clear clipboard on show.
graesslin updated this object.
graesslin edited the test plan for this revision. (Show Details)
graesslin added a reviewer: Plasma.
Restricted Application added a project: Plasma. · View Herald TranscriptFeb 17 2017, 3:23 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript

Works fine on X.

So when I lock the screen and unlock again, my copied stuff will be gone… but then, if I lock the screen I'm probably away for an extended period of time anways.


broulik accepted this revision.Feb 17 2017, 4:39 PM
broulik added a reviewer: broulik.
This revision is now accepted and ready to land.Feb 17 2017, 4:39 PM
This revision was automatically updated to reflect the committed changes.