In Progress CPANEL-41721 - Paste in Terminal doesn't work in Firefox

panit

Well-Known Member
Aug 14, 2013
46
2
58
cPanel Access Level
Reseller Owner
Since the last update (106.0.9) the menu paste function in Firefox doesn't work when using the Terminal in WHM. I've verified this with other computers and the paste option works fine in all other windows. The paste does work in Chrome. Is there a way to get this to work in FF?
 

rbairwell

Well-Known Member
May 28, 2022
98
42
18
Mansfield, Nottingham, UK
cPanel Access Level
Root Administrator
I can confirm this is an issue on Windows 10 Pro using Firefox 105.0.3 (64-bit) and 106.0 (64-bit) both with no extensions - using Ctrl+V on Windows does NOT paste into the X-Term Terminal Window in WHM: but right clicking and selecting Paste does work. (Also noting: highlight and Ctrl+C to copy does not work, but again using the right-click context menu it does work),

I've found that if you use Ctrl+Shift+V it does work (which is FF's shortcut for "Paste as plain text").

From what I've seen in the XTerm repository, this is actually a Firefox privacy setting: from https://github.com/xtermjs/xterm.js/issues/3380#issuecomment-873670029 :
These 2 settings in FF about:config are what causes the issue:
dom.event.clipboardevents.enabled = false - this flag prevents copy-pasting
privacy.resistFingerprinting = true - switching off this flag makes the text sharp
(although there looks to be a way to potentially override this )
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
13,463
2,114
363
cPanel Access Level
Root Administrator
Thanks for the confirmation - I just needed another user to confirm this was a Windows-based issue before I could create a case with our developers.

I created CPANEL-41721 with our team and I'll be sure to post updates here once that case has some action.