简体   繁体   English

为什么在Flash中使用复制粘贴而不在Javascript中使用安全?

[英]Why is it safe to use copy & paste in Flash but not in Javascript?

I'm trying to use copy'n paste in one of my web apps and have read a few articles/SO questions about it. 我正在尝试在其中一个Web应用程序中使用“复制粘贴”功能,并已阅读了一些有关此问题的文章/ SO问题。 Most people say that using Flash is the only option since most browsers don't allow access to the system clipboard because of security concerns. 多数人说,使用Flash是唯一的选择,因为出于安全考虑,大多数浏览器不允许访问系统剪贴板。

I can understand this but I wonder why it is okay for Flash do this, but not for the browser. 我可以理解这一点,但是我想知道为什么Flash可以这样做,但对于浏览器却不行。

Or has it got nothing to do with security and it is simply to complicated to implement this for cross-platform browser vendors? 还是与安全性无关,而对于跨平台的浏览器供应商来说,实现这一点太复杂了?

Its generally not "ok" for Flash to do this for the same exact reasons that the majority of browser vendors disallow it. 出于大多数浏览器供应商都不允许这样做的确切原因,Flash通常无法做到这一点。 Adobe runs in their own world however, and there is little anyone can do about it. 但是,Adobe在自己的世界中运行,几乎没人能做到。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM