[chrome.tabCapture] Close presentations that attempt to navigate.
Presentations have the sandboxed-top-level-navigation-browsing-context-flag set [1], so they should not be able to start top-level navigations that cross documents. This patch allows this navigation policy to be enforced for offscreen tabs that are started as presentations. A companion change in Blink, https://chromium-review.googlesource.com/c/540498, sets the appropriate flags on the Document for the presentation; this adds additional enforcement in the WebContents layer. [1] https://www.w3.org/TR/html51/browsers.html#sandboxed-top-level-navigation-browsing-context-flag Bug: 697526 Change-Id: Ic1f797b408df82c226d6023966afe2f972d6d159 Reviewed-on: https://chromium-review.googlesource.com/538975 Commit-Queue: mark a. foltz <mfoltz@chromium.org> Reviewed-by:Yuri Wiitala <miu@chromium.org> Cr-Commit-Position: refs/heads/master@{#486547}
Showing
Please register or sign in to comment