|
|
|
|
|
by joshstrange
4644 days ago
|
|
Well the security concerns are VERY valid, in theory after getting your permission to access the clipboard I could poll it every X milliseconds and fire off whatever I get to a third-party service. If you look at Flash's implementation for getting data from the clipboard[0] you can see they mention all sorts of limitations like "Because of security restrictions on accessing clipboard data, this example does not work in Flash Player. In Flash Player, you can only call the getData() method of the Clipboard object in a paste event handler.". I can see there being support possibly for setting the clipboard via JS but I'm struggling to find a good reason to want to get the clipboard data? Why not have the user just paste it in a textbox and listen for on change or something like that? [0] http://help.adobe.com/en_US/FlashPlatform/reference/actionsc... |
|
Also, what if the user has to give permission to read the clipboard per default, but he can also check 'Always allow for this tab'?