I am developing a one-page application, I have a button on the page when the user clicks the button that I would like to make an ajax call on my server, and then copy the return value (via the callback) to the user clipboard.
Each component works in isolation, but when I glue them together, Firefox returns the following error:
document.execCommand ('cut /' copy) was rejected because it was not called from within a short run of a custom event handler
I would like to know the features of this error, but there is absolutely no information on the Internet; what are the limit conditions causing this error, is the stack depth, timeout, etc.
source share