masterpassword-firefox icon indicating copy to clipboard operation
masterpassword-firefox copied to clipboard

Add 'x-kde-passwordManagerHint' mimetype so that a copied password doesn't get saved to long-term history

Open Pointedstick opened this issue 2 years ago • 3 comments

KDE's clipboard manager has a persistent history feature, but allows for the possibility of adding an item to the clipboard so that it can be immediately pasted, but it doesn't get added to the history at all. To do this, the x-kde-passwordManagerHint mimetype needs to be added to the list of mimetypes for the paste data. This would be a nice thing to do here, so that when you copy a password to paste it into a text field that was not able to be automatically populated, there is no risk of a password being leaked into the user's plaintext history.

See https://phabricator.kde.org/D12539 for more information.

Pointedstick avatar Mar 27 '22 21:03 Pointedstick

Interesting feature. While kde specific I think it would be worthwhile to support

ttyridal avatar Mar 28 '22 08:03 ttyridal

Cool. I can try my hand at implementing it if you can point me to where in the code the MIME data gets set.

Pointedstick avatar Mar 31 '22 20:03 Pointedstick

Great. The clip board is handled here:

https://github.com/ttyridal/masterpassword-firefox/blob/master/ext/webextension/src/lib/utils.js

ttyridal avatar Apr 01 '22 06:04 ttyridal