m1k1o / neko

A self hosted virtual browser that runs in docker and uses WebRTC.
https://neko.m1k1o.net/
Apache License 2.0
7.17k stars 526 forks source link

Bi-directional, cross-browser clipboard handling without extra permisssions #171

Open m1k1o opened 2 years ago

m1k1o commented 2 years ago

There should be bi-directional clipboard, that is cross-browser compatible (we care for now only about Chrome & Firefox, later Safari). It should not require any extra permisssions, that means it works like natively. Only for text.

Sounds impossible, but reading text should be doable with intercepting user's interaction (so only Ctrl+V, no paste within context menu inside neko).

Writing text should be easy, as stated here:

The "clipboard-write" permission of the Permissions API, is granted automatically to pages when they are in the active tab.