问题描述
这里是一个考试
为什么我使用
Hy here is a examleExample Why when i use
<IFRAME sandbox="allow-forms allow-scripts" SRC="http://roshare.info/embedx-xcnvxz71l8fb-699x380.html" FRAMEBORDER=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=NO WIDTH=699 HEIGHT=400></IFRAME>
sandbox我看不到播放器..我想用沙盒来阻止弹出窗口但是看起来就像我使用它我没看到玩家
是否有任何 allow-objects
?
sandbox i dont see the player .. i want to use sandbox just to block pop-ups but looks like if i use it i dont see the player is there any allow-objects
?
I在该页面上也有一个没有沙箱的例子,它可以工作..
I have also a no sandbox example on that page and it works ..
推荐答案
你是对的。沙箱将阻止框架内的插件内容。与沙箱的其他方面不同,没有在沙盒 iframe
中启用插件的机制。 如果你很好奇,会有更详细的信息。
You're correct. The sandbox will block plugin content inside the frame. Unlike other aspects of the sandbox, there is no mechanism for enabling plugins inside a sandboxed iframe
. http://www.html5rocks.com/en/tutorials/security/sandboxed-iframes/#granular-control-over-capabilities has more detail if you're curious.
这篇关于iframe SandBox是阻塞嵌入对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!