-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Editing text in Safari/macOS gives JavaScript error: undefined is not an object (evaluating 'navigator.clipboard write') #30861
Comments
Could you try 1.22-nightly? The editor has been updated to #30713, I can not reproduce the JS error by my Safari now. Docker images could be got from https://hub.docker.com/r/gitea/gitea/tags?page=&page_size=&ordering=&name=1.22-nightly, binary 1.22 nightly could be downloaded from https://dl.gitea.com/gitea/1.22/ By the way @techknowlogick , would we like to rename the directory to 1.22-nightly to match the docker image names? |
Checked again. 30713 is in 1.22-nightly (I misread ....) |
Hmm, it seems to be a longstanding problem in monaco-editor, the code is 3-year old. (TBH, I have no idea why it only happens in 1.22/main .....) Until upstream has a fix (microsoft/monaco-editor#4496), we could ignore such error by: Do not show monaco JS errors #30862 |
1.22 nightly including #30866 is ready. Welcome to take a try and if there is still any problem, please help to report. Thank you very much! |
Fix in nightly seems perfect. Thank you very much for fixing this so promptly. |
Description
On typing, the web page displays the above JavaScript clipboard error with eg
(http://rad.gitea:12080/assets/js/monaco.14c11225.js @ 415:16905)
.This appears to relate to the update of monaco-editor from 0.44.0 to 0.45.0 in ce55a74
I suspect this only occurs when serving over http rather than https as the error does not occur on https://try.gitea.io/
Presumably monaco-editor is now using the async clipboard API. See https://webkit.org/blog/10855/async-clipboard-api/
Gitea Version
1.22.0-rc1
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
Git Version
2.40.1
Operating System
Ubuntu 23.10
How are you running Gitea?
Dockerised on Proxmox 8.2
Database
MySQL/MariaDB
The text was updated successfully, but these errors were encountered: