Ali*_*N11 9 flash iframe html5 sandbox
我曾经用过iframe一些页面adobe flash.这些页面可能包含像视频这样的内容.我的问题是abode flash不在iframesandbox属性中执行.我的iframe标签:
<iframe sandbox="allow-popups allow-pointer-lock allow-same-origin allow-forms allow-scripts" src="http://example.com"></iframe>
Run Code Online (Sandbox Code Playgroud)
小智 6
简短回答:您无法在沙盒iframe中执行Flash插件.
规范:http://www.w3.org/TR/html5/embedded-content-0.html#attr-iframe-sandbox
沙盒浏览上下文中禁用了无法保护的插件,因为它们可能无法遵守沙箱所施加的限制(例如,即使禁用了沙箱中的脚本,它们也可能允许编写脚本).如果提供了这样做的选项,用户代理应该向用户传达覆盖沙箱的危险.
有关沙箱属性的综合信息,请访问:http://blog.dareboost.com/en/2015/07/securing-iframe-sandbox-attribute/