使用html5沙箱iframe时,我希望iframe无法更改其位置:
<iframe sandbox="allow-forms allow-popups allow-pointer-lock allow-same-origin allow-scripts" class="iframe visible" src="thesource.html" width="100%" scrolling="auto" frameborder="0"></iframe>
Run Code Online (Sandbox Code Playgroud)
它在Chrome中运行良好,但在Firefox中,沙盒iframe仍然可以重定向.
这是一个已知的错误,但我如何修补它,以便所有Firefox用户都不会被重定向?