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
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
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:
Expand All @@ -10,22 +9,13 @@ status:
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-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
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,18 @@ compat_features:
# safari_ios: "11.3"
- html.elements.iframe.sandbox.allow-top-navigation-by-user-activation

# baseline: low
# baseline_low_date: 2023-09-18
# support:
# chrome: "83"
# chrome_android: "83"
# edge: "83"
# firefox: "82"
# firefox_android: "82"
# safari: "17"
# safari_ios: "17"
- html.elements.iframe.sandbox.allow-downloads

# baseline: false
# support:
# firefox: "101"
Expand Down