Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions features/draft/iframe-sandbox.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
draft_date: 2024-07-19
name: Sandboxed iframes
description: The `sandbox` attribute for the `<iframe>` HTML element sets many security restrictions on the iframe, such as preventing form submissions or opening modal dialogs. Optional `allow-` values relax specific restrictions.
spec:
- https://html.spec.whatwg.org/multipage/iframe-embed-object.html#attr-iframe-sandbox
- https://privacycg.github.io/storage-access/#sandboxing-storage-access
caniuse: iframe-sandbox
status:
compute_from: html.elements.iframe.sandbox
compat_features:
- api.HTMLIFrameElement.sandbox
- html.elements.iframe.sandbox
# TODO: include after https://github.com/mdn/browser-compat-data/pull/23951
# - html.elements.iframe.sandbox.allow-downloads
- html.elements.iframe.sandbox.allow-forms
- html.elements.iframe.sandbox.allow-modals
# Part of screen orientation lock:
# - html.elements.iframe.sandbox.allow-orientation-lock
# Part of pointer lock:
# - html.elements.iframe.sandbox.allow-pointer-lock
- html.elements.iframe.sandbox.allow-popups
- html.elements.iframe.sandbox.allow-popups-to-escape-sandbox
# Part of presentation API:
# - html.elements.iframe.sandbox.allow-presentation
- html.elements.iframe.sandbox.allow-same-origin
- html.elements.iframe.sandbox.allow-scripts
# Part of storage access:
# - html.elements.iframe.sandbox.allow-storage-access-by-user-activation
- html.elements.iframe.sandbox.allow-top-navigation
- html.elements.iframe.sandbox.allow-top-navigation-by-user-activation
- html.elements.iframe.sandbox.allow-top-navigation-to-custom-protocols
106 changes: 106 additions & 0 deletions features/draft/iframe-sandbox.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
# Generated from: iframe-sandbox.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: high
baseline_low_date: 2015-07-29
baseline_high_date: 2018-01-29
support:
chrome: "5"
chrome_android: "18"
edge: "12"
firefox: "17"
firefox_android: "17"
safari: "5"
safari_ios: "4"
compat_features:
# ⬇️ Same status as overall feature ⬇️
# baseline: high
# baseline_low_date: 2015-07-29
# baseline_high_date: 2018-01-29
# support:
# chrome: "5"
# chrome_android: "18"
# edge: "12"
# firefox: "17"
# firefox_android: "17"
# safari: "5"
# safari_ios: "4"
- api.HTMLIFrameElement.sandbox
- html.elements.iframe.sandbox

# baseline: high
# baseline_low_date: 2015-07-29
# baseline_high_date: 2018-01-29
# support:
# chrome: "17"
# chrome_android: "18"
# edge: "12"
# firefox: "28"
# firefox_android: "27"
# safari: "6"
# safari_ios: "6"
- html.elements.iframe.sandbox.allow-popups

# baseline: high
# baseline_low_date: 2020-01-15
# baseline_high_date: 2022-07-15
# support:
# chrome: "5"
# chrome_android: "18"
# edge: "79"
# firefox: ≤49
# firefox_android: "49"
# safari: "5"
# safari_ios: "4"
- html.elements.iframe.sandbox.allow-forms
- html.elements.iframe.sandbox.allow-same-origin
- html.elements.iframe.sandbox.allow-scripts

# baseline: high
# baseline_low_date: 2020-01-15
# baseline_high_date: 2022-07-15
# support:
# chrome: "6"
# chrome_android: "18"
# edge: "79"
# firefox: ≤49
# firefox_android: "49"
# safari: "5"
# safari_ios: "4.2"
- html.elements.iframe.sandbox.allow-top-navigation

# baseline: high
# baseline_low_date: 2020-01-15
# baseline_high_date: 2022-07-15
# support:
# chrome: "46"
# chrome_android: "46"
# edge: "79"
# firefox: "49"
# firefox_android: "49"
# safari: "11.1"
# safari_ios: "11.3"
- html.elements.iframe.sandbox.allow-modals
- html.elements.iframe.sandbox.allow-popups-to-escape-sandbox

# baseline: high
# baseline_low_date: 2020-07-28
# baseline_high_date: 2023-01-28
# support:
# chrome: "58"
# chrome_android: "58"
# edge: "79"
# firefox: "79"
# firefox_android: "79"
# safari: "11.1"
# safari_ios: "11.3"
- html.elements.iframe.sandbox.allow-top-navigation-by-user-activation

# baseline: false
# support:
# firefox: "101"
# firefox_android: "101"
# safari: "16"
# safari_ios: "16"
- html.elements.iframe.sandbox.allow-top-navigation-to-custom-protocols