Prevent paste in screen locker

Authored by davidedmundson on Aug 20 2018, 12:47 PM.

Description

Prevent paste in screen locker

Summary:
KScreenlocker tries to clear the clipboard on load. However, klipper
also (by default) automatically keeps the last relevant item in the
clipboard. Whilst both parts independently work correctly, Plasma as a
whole does not.

This became a problem when we added the reveal password button as it is
a data leak.

Instead of clearing the clipboard this patch replaces it with a real
entry, but with a dummy mime value that is of no value to anyone,
especially a textfield.

BUG: 388049

Test Plan:
Reproduced issue
Made this patch
Tried pasting in session
Nothing happned
Logged in
Could paste

Reviewers: Plasma, mart

Reviewed By: mart

Subscribers: mart, graesslin, plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D14924

Details

Committed
davidedmundsonAug 20 2018, 12:49 PM
Reviewer
mart
Differential Revision
D14924: Prevent paste in screen locker (alternative approach)
Parents
R133:c25251a7eb05: Load QtQuickSettings for software rendering
Branches
Unknown
Tags
Unknown