Flash无法在沙箱属性中的iframe中工作 [英] Flash not work in iframe within sandbox attribute
问题描述
我使用了 iframe
来显示一些页面.这些页面可能包含 adobe flash
内容,例如视频.我的问题是 abode flash
不在沙盒属性内的 iframe
中执行.我的 iframe
标记:
I've used iframe
to show some pages.These pages may contain an adobe flash
content like a video.
my problem is that the abode flash
doesn't execute in an iframe
within sandbox attribute.
my iframe
tag :
<iframe sandbox="allow-popups allow-pointer-lock allow-same-origin allow-forms allow-scripts" src="http://example.com"></iframe>
推荐答案
简短的答案:您无法在沙盒iframe中执行Flash插件.
Short answer: you can't execute flash plugin in a sandboxed iframe.
规范: http://www.w3.org/TR/html5/embedded-content-0.html#attr-iframe-sandbox
无法保护的插件在沙盒浏览中被禁用上下文,因为它们可能不遵守沙箱(例如,即使在沙箱已禁用).用户代理应传达以下危险:如果提供了将沙箱覆盖给用户的选项.
Plugins that cannot be secured are disabled in sandboxed browsing contexts because they might not honor the restrictions imposed by the sandbox (e.g. they might allow scripting even when scripting in the sandbox is disabled). User agents should convey the danger of overriding the sandbox to the user if an option to do so is provided.
有关沙箱属性的全面信息,请访问: http://blog.dareboost.com/en/2015/07/securing-iframe-sandbox-attribute/
For comprehensive information about sandbox attribute: http://blog.dareboost.com/en/2015/07/securing-iframe-sandbox-attribute/
这篇关于Flash无法在沙箱属性中的iframe中工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!