You are not logged in.

#1 2021-08-04 19:54:20

NGStaph
Member
Registered: 2021-04-11
Posts: 34

[Solved] Click to Copy does not work in firefox gnome

i have a problem with Firefox in gnome where click to copy (on websites like GitHub where code sections can be copied with a click) does not work when I'm using Firefox on gnome.
However, this functionality works on chrome, and gnome Web. This feature also works for Firefox on KDE.
What am i missing here?

Last edited by NGStaph (2024-05-17 07:16:57)

Offline

#2 2021-08-06 19:06:57

f-elixxx
Member
Registered: 2021-08-02
Posts: 5

Re: [Solved] Click to Copy does not work in firefox gnome

Are you using Wayland?
       If yes it might very well be a (firefox or gtk ?) bug as Wayland has a history of problems with copying between windows.
Can you copy text in firefox by selecting?

Offline

#3 2021-08-07 07:09:15

NGStaph
Member
Registered: 2021-04-11
Posts: 34

Re: [Solved] Click to Copy does not work in firefox gnome

I'm on X11 and i can copy paste using both the keyboard and mouse post selection. The only scenario where copy/paste doesn't work is the scnario above i.e. on websites with click to copy code sections.

Offline

#4 2023-07-08 04:08:09

travisdev
Member
Registered: 2023-07-08
Posts: 1

Re: [Solved] Click to Copy does not work in firefox gnome

Have you figured out how to fix this? For me it is not working in Firefox with i3-wm

Offline

#5 2023-07-08 06:27:17

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,009

Re: [Solved] Click to Copy does not work in firefox gnome

Is "click to copy" the primary selection that typically gets filled when selecting text w/ the mouse or some javascript button on a webpage?
Are all webpages (eg. this one) affected?

Edit: fixed typo, thanks to the heads up from yogiken
Does

(xsel -op; echo; xsel -os; echo; xsel -ob) | less -F

print the desired selection anywhere?

Last edited by seth (2024-04-02 16:55:36)

Offline

#6 2024-04-02 16:51:45

yogiken
Member
Registered: 2024-04-02
Posts: 1

Re: [Solved] Click to Copy does not work in firefox gnome

I think Seth had the right answer but there might be a typo in the suggested code. I think this is what was intended:

(xsel -op; echo; xsel -os; echo; xsel -ob) | less -F

(Note the '-ob' for the third invocation.)

Here's a similar diagnostic using xclip (this time omitting the secondary selection since it is so rarely used):

echo -n "primary selection: " ; xclip -sel p -o; echo; echo; echo -n "clipboard: "; xclip -sel c -o; echo | less -F

The issue here is that click to copy is actually working but rather than putting the copied text into the primary buffer, it's putting it into the clipboard (equivalent to pressing CTRL-C except that the primary selection is unaffected.) So

xsel -ob

or

xclip -sel c -o

should contain the text that was copied when you clicked the button in Firefox.

Offline

Board footer

Powered by FluxBB