#706·neko

Safari requires Clipboard button fallback as well

Author: dairiki-renCreated Sep 13, 2026Updated Sep 13, 2026

Hello there!

I'm glad having found this cool project :) Really practical to have an isolated browser you can even share with others!

When trying to paste something on Safari MacOS over an HTTPS connection, Command-V does not work. I suspect this is because Safari's clipboard handling is broken in a way similar to Firefox. For a quick band-aid solution to show the fallback clipboard button/paste area, I'd just add the Safari user agent here...

https://github.com/m1k1o/neko/blob/ddf2787c5e3891f4578da5552436694a94f1ae22/client/src/components/video.vue#L335-L345

so it becomes something like this...

get clipboard_read_available() {
      return (
        'clipboard' in navigator &&
        typeof navigator.clipboard.readText === 'function' &&
        // Firefox 122+ incorrectly reports that it can read the clipboard but it can't
        // instead it hangs when reading clipboard, until user clicks on the page
        // and the click itself is not handled by the page at all, also the clipboard
        // reads always fail with "Clipboard read operation is not allowed."
        navigator.userAgent.indexOf('Firefox') == -1 &&
        navigator.userAgent.indexOf('Safari') == -1
      )
    }

But since there might be quite a few more browsers where the implicit clipboard might not work, I was thinking maybe a client-side toggle that forces the clipboard fallback button to show would be nice... For now, I'm adding this part of the code manually as a response override to the JS resource in my devtools.

Thanks in advance!