Closed
Description
The timer event for the clipboard clearing functionality should be improved. When new passwords are copied in the clipboard the timer should be reset to the user's time interval set in the settings.
The current behaviour is as such:
The clearing timer starts whenever a 'copy to clipboard' event is detected. However if another 'copy to clipboard' event is detected while the clearing didn't occur yet then the user will have his clipboard (which contains the new copied password) cleared sooner than expected.
PoC:
- Set the clearing timer to 10sec.
- Click on a password to copy in the clipboard.
- Wait 5 seconds.
- Click on another password to copy to the clipboard.
- Observe that the clipboard is cleared after 5 seconds instead of 10 seconds (because the clearing timer wasn't reset when the second password was copied).