I develop a web-based game which uses ‘copy savefile as a text to clipboard’ as a method to allow players to share/transfer their savefiles, as well as a tool for bug reporting/reproduction.
It turned out that this feature does not work on Chrome due to lack of clipboard-write permissions in ‘allow’ attribute of iframe tag of the itch.io game page. (See https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API#security_considerations )
I believe this addition will not affect security, since:
- Firefox and Safari do not support this permission and just allow clipboard.writeText always
- The iframe tag already allows practically everything else.