Hacker News new | past | comments | ask | show | jobs | submit login

Only somewhat related, but is there still no way to access the clipboard in a web app without flash?



Imagine 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!


The 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.


Flash 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.


I 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.


There 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/


Thanks for pointing me to this! Glad to know it's at least something being actively considered.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: