Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fenced frames: window.fence.disableUntrustedNetwork API surface
Add nonfunctional window.fence.disableUntrustedNetwork API surface (behind feature flag), which is not available in urn iframes. Later CLs will gradually make it functional. This entails the following internal changes: * New fields `can_disable_untrusted_network_` and `has_disabled_untrusted_network_` in FencedFrameProperties. `can_disable_untrusted_network_` is true for all fenced frame configs, but disabled for urn iframes at the same time as partition nonce. `can_disable_untrusted_network_` is sent to same-origin renderers to gate availability of the window.fence.disableUntrustedNetwork API. * Navigations through the FencedFrameConfig(url) constructor now store `url` as the mapped url in the resulting FencedFrameProperties, so that we can perform same- vs. cross-origin checks for availability of window.fence.disableUntrustedNetwork. I2P: https://groups.google.com/a/chromium.org/g/blink-dev/c/ofii__csdOY Explainer: https://github.com/WICG/fenced-frame/blob/master/explainer/fenced_frames_with_local_unpartitioned_data_access.md#revoking-network-access Bug: 1515599 Change-Id: I13ec7a570bd7d84b2bc3780b577e318b4d103e9a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5124560 Reviewed-by: Dominic Farolino <[email protected]> Commit-Queue: Garrett Tanzer <[email protected]> Reviewed-by: Arthur Sonzogni <[email protected]> Cr-Commit-Position: refs/heads/main@{#1246541}
- Loading branch information