Slion / Fulguris

⚡Web Browser
http://fulguris.slions.net
Other
497 stars 49 forks source link

Writing to clipboard from JavaScript doesn't work #343

Open Kita2345 opened 2 years ago

Kita2345 commented 2 years ago

Copy to clipboard option on any website that uses JavaScript's navigator.clipboard.writeText doesn't work. Case 1: GitHub page

Go to https://github.com/Akianonymus/gdrive-downloader#basic-method and https://github.com/bezzad/Downloader#how-to-use Use the copy button to copy the code block Doesn't respond as Copied and the text is also not copied Case 2: website

Go to https://compro-prasad.gitlab.io Use the # symbol beside any of the headers Copied message is shown but the link doesn't get copied

Slion commented 2 years ago

Sounds like an issue with WebView. See: https://stackoverflow.com/questions/61429649/copy-to-clipboard-using-navigator-clipboard-writetext-not-working-in-android-web https://stackoverflow.com/questions/61429649/copy-to-clipboard-using-navigator-clipboard-writetext-not-working-in-android-web https://chromium.googlesource.com/chromium/src/+/refs/heads/master/android_webview/browser/aw_permission_manager.cc#:~:text=case%20PermissionType::CLIPBOARD_READ_WRITE:

I'm afraid there is no easy soluition other than getting this fixed in WebView. This issue should be reported to the Chromium project really.