Available in Chrome 46+ | View on GitHub | Browse Samples
In order to mitigate the risks associated with ads when using sandboxed
iframes, developers can now add "allow-popups-to-escape-sandbox"
to the frame "attribute"
. This allows the sandboxed document to
spawn new windows without forcing the sandboxing flags upon them, hence
creating a clean browsing context. For instance, a third-party
advertisement could be safely sandboxed without forcing the same restrictions
upon a landing page.
Popup windows can be spawned with window.open()
and
target="_blank"
links.