Steps to replicate the issue:
- Start a comment/new topic with DiscussionTools in a Linux X system.
- Copy some text in clipboard (Ctrl+C).
- Select some text, this is primary selection.
- Paste the primary selection (mouse middle-click).
- Try to paste the clipboard (Ctrl+V).
- Bonus:
- Open a new browser tab, visit any page and copy any text into your clipboard (Ctrl+C).
- Go back to wiki discussion tab.
- Try to paste clipboard (Ctrl+V)
What happens?:
Ctrl+V pastes the primary selection.
Bonus: it still pastes the primary selection. “DiscussionTool local clipboard” only updates if you exit focus from comment area before copying (Ctrl+C)).
What should have happened instead?:
Primary selection and clipboard must remain distinct. Pasting one should not remove access to the other one.
Other information:
Tested with Firefox and Chromium, on Debian GNU/Linux.
Probably related issue: T302147, even if does happen in Windows, not Linux, I think this is a clipboard synchronization issue.