5 ms·
Only somewhat related, but is there still no way to access the clipboard in a web app without flash?
by lewisl9029 12y ago
Only somewhat related, but is there still no way to access the clipboard in a web app without flash?
- skrowl 12y agoImagine a web where you could just write to the users clipboard without a plugin + requiring a click. It would NEVER be safe to Ctrl+V again!
- lewisl9029 12y agoThe requiring a click part is the only relevant implementation detail for this functionality, in my opinion. Whether or not it requires a plugin shouldn't matter. In fact, requiring a plugin for this functionality only serves to increase the attack surface for the browser as a platform.
- RaleyField 12y agoFlash code can read clipboard from Flash/browser i.e. it can run in background and silently and continuously collect contents of clipboard? If so then it should be rightfully classified as spyware and purged from every computer.
- cpeterso 12y agoI think Flash only allows SWF content to access the clipboard in response to a user click. GitHub's "copy repo URL to clipboard" button uses Flash to write to the clipboard. Shumway has implemented Flash's clipboard APIs (which it can do because it can access Gecko XPCOM APIs as a Firefox extension), but they are currently disabled because Shumway hasn't implemented the "in response to user click" bit yet.
- cpeterso 12y agoThere is a W3C spec for a web clipboard API but I don't know if any browsers have implemented it: http://www.w3.org/TR/clipboard-apis/ http://www.w3.org/TR/clipboard-apis/
- lewisl9029 12y agoThanks for pointing me to this! Glad to know it's at least something being actively considered.