[Presentation API] Enforce sandboxing flags for presentations.
This enforces sandboxing flags for pages loaded as presentations via the
Presentation API, following step 3 of the steps to create a receiving browsing
context [1].
Although top navigation is blocked in the implementation of OffscreenTab [2],
we also set the kTopNavigation flag to be inherited by iframes.
This patch adds layout tests. Web Platform Tests are available as well, but
require manually starting a presentation.
This patch also updates WebSandboxFlags to reflect the current set of sandboxing
flags.
[1] https://w3c.github.io/presentation-api/#creating-a-receiving-browsing-context
[2] https://chromium-review.googlesource.com/c/538975/
Bug: 697526
Cq-Include-Trybots: master.tryserver.chromium.linux:linux_site_isolation
Change-Id: Idb0b8c51c03ef504767a7fc6c483c0909dc240fc
Reviewed-on: https://chromium-review.googlesource.com/540498
Commit-Queue: mark a. foltz <mfoltz@chromium.org>
Reviewed-by: Yuri Wiitala <miu@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Reviewed-by: Derek Cheng <imcheng@chromium.org>
Reviewed-by: John Abd-El-Malek <jam@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#510675}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: ef394fce1aedb8db58821242eadd70720b125153
6 files changed