Created attachment 432860 [details] screen recording of the issue Safari Version 14.1.1 (16611.2.7.1.4) 1. Open web version of Discord 2. Find any server, join it, find any message 3. Use "copy message link" option on any message What happens 1. Link to the messsage (url) doesn't copy to clipboard What should happen 1. Link to the message (url) copies to the clipboard
I'm not a developer, so put this bug into Evangelism component. Sorry if it's a wrong way of doing things.
This, called with a string, seems not to cause the string to be copied to the clipboard Safari 14.1.1: function copy(e) { var t = document.body; if (null == t) throw new Error("[Utils] ClipboardUtils.copy(): assert failed: document.body != null"); var n = document.createRange(), r = window.getSelection(), i = document.createElement("textarea"); i.value = e, i.contentEditable = "true", i.style.visibility = "none", t.appendChild(i), n.selectNodeContents(i), null == r || r.removeAllRanges(), null == r || r.addRange(n), i.focus(), i.setSelectionRange(0, e.length); var o = document.execCommand("copy"); return t.removeChild(i), o }
<rdar://problem/80157571>
Oh, no, that's wrong. The function works fine (though Web Inspector console doesn't count as a user gesture, perhaps?). Caused by having requestAnimationFrame in the stack. *** This bug has been marked as a duplicate of bug 223775 ***