Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where is the clipboard button for Firefox-browsers? #373

Open
rubydotexe opened this issue Mar 10, 2024 · 6 comments
Open

Where is the clipboard button for Firefox-browsers? #373

rubydotexe opened this issue Mar 10, 2024 · 6 comments
Labels
question Further information is requested

Comments

@rubydotexe
Copy link

Potentially dumb question alert

According to documentation,

If your browser does not support clipboard sharing:
Clipboard icon in the bottom right corner will be displayed for host

However, when I use neko in Firefox, I do not see this clipboard:
image

Is this feature still there?

@m1k1o
Copy link
Owner

m1k1o commented Mar 10, 2024

Tested on firefox now. Is visinle when you are hosting - keyboard is active:
image

Shown in the corner, but inside the screen area (such as fullscreen button and resolution button):
image

@m1k1o m1k1o added the question Further information is requested label Mar 10, 2024
@rubydotexe
Copy link
Author

I'm afraid it's still not appearing:

image

@m1k1o
Copy link
Owner

m1k1o commented Mar 11, 2024

Interesting. Do you probably have enabled some non-standard features or a different version of firefox? Did it ask you when you entered the page to enable clipboard? Beause we check if the clipboard API is available and if it is, we don't show clipboard icon. But CTRL+C and V should be working instead.

get clipboard_read_available() {
return 'clipboard' in navigator && typeof navigator.clipboard.readText === 'function'
}
get clipboard_write_available() {
return 'clipboard' in navigator && typeof navigator.clipboard.writeText === 'function'
}

Can you check in your firefox console what yields this? 'clipboard' in navigator && typeof navigator.clipboard.writeText === 'function' If that function is available for you?

@ehfd
Copy link

ehfd commented Mar 11, 2024

Possible that HTTP and non-localhost addresses block clipboards in both Chromium and Firefox. This is standard behavior.

Brave may block navigator depending on security settings even if it's not the case.

@m1k1o
Copy link
Owner

m1k1o commented Mar 11, 2024

Probably bulletproof solution would be to show clipboard button all the time. No matter if the browser supports clipboard or no.

@rubydotexe
Copy link
Author

Interesting. Do you probably have enabled some non-standard features or a different version of firefox? Did it ask you when you entered the page to enable clipboard? Beause we check if the clipboard API is available and if it is, we don't show clipboard icon. But CTRL+C and V should be working instead.

get clipboard_read_available() {
return 'clipboard' in navigator && typeof navigator.clipboard.readText === 'function'
}
get clipboard_write_available() {
return 'clipboard' in navigator && typeof navigator.clipboard.writeText === 'function'
}

Can you check in your firefox console what yields this? 'clipboard' in navigator && typeof navigator.clipboard.writeText === 'function' If that function is available for you?

The value I get is true both host and neko's firefox. An update: The clipboard is now appearing now that I restarted the container again, even though it had no impact the previous times I've done it.

A nonstandard feature: I enabled add-on installation using /usr/lib/firefox/mozilla.cfg.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants