The featurePolicy
read-only property of the HTMLIFrameElement
interface returns the FeaturePolicy
interface which provides a simple API for introspecting the feature policies applied to a specific frame.
Syntax
var policy = HTMLIFrameElement.featurePolicy
Value
A FeaturePolicy
object that can be used to inspect the Feature Policy settings applied to the frame.
Specification
Specification |
Status |
Comment |
Feature Policy |
Editor's Draft |
Initial definition. |
Browser compatibility
| Desktop | Mobile |
---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | Android webview | Chrome for Android | Firefox for Android | Opera for Android | Safari on iOS | Samsung Internet |
---|
featurePolicy | Chrome
Full support
74-
Full support
74
- Notes Chrome Platform Status incorrectly describes this variable as
document.policy . It was renamed in bug 917057 before being shipped in bug 703703. -
No support
73 — 74
- Disabled From version 73 until version 74 (exclusive): this feature is behind the
#enable-experimental-productivity-features preference (needs to be set to Enabled ). To change preferences in Chrome, visit chrome://flags. -
No support
69 — 73
- Alternate Name Uses the non-standard name:
policy - Disabled From version 69 until version 73 (exclusive): this feature is behind the
#enable-experimental-productivity-features preference (needs to be set to Enabled ). To change preferences in Chrome, visit chrome://flags.
| Edge
Full support
79-
Full support
79
- Notes Edge Platform Status incorrectly describes this variable as
document.policy . It was renamed in bug 917057 before being shipped in bug 703703.
| Firefox
Full support
69-
Full support
69
- Disabled From version 69: this feature is behind the
dom.security.featurePolicy.webidl.enabled preference (needs to be set to true ). To change preferences in Firefox, visit about:config. -
No support
65 — 69
- Alternate Name Uses the non-standard name:
policy - Disabled From version 65 until version 69 (exclusive): this feature is behind the
dom.security.featurePolicy.webidl.enabled preference (needs to be set to true ). To change preferences in Firefox, visit about:config.
| IE
No support
No | Opera
Full support
62-
Full support
62
-
No support
60 — 62
- Disabled From version 60 until version 62 (exclusive): this feature is behind the
#enable-experimental-productivity-features preference (needs to be set to Enabled ). -
No support
56 — 60
- Alternate Name Uses the non-standard name:
policy - Disabled From version 56 until version 60 (exclusive): this feature is behind the
#enable-experimental-productivity-features preference (needs to be set to Enabled ).
| Safari
No support
No | WebView Android
Full support
74-
Full support
74
- Notes Chrome Platform Status incorrectly describes this variable as
document.policy . It was renamed in bug 917057 before being shipped in bug 703703.
| Chrome Android
Full support
74-
Full support
74
- Notes Chrome Platform Status incorrectly describes this variable as
document.policy . It was renamed in bug 917057 before being shipped in bug 703703. -
No support
73 — 74
- Disabled From version 73 until version 74 (exclusive): this feature is behind the
#enable-experimental-productivity-features preference (needs to be set to Enabled ). To change preferences in Chrome, visit chrome://flags. -
No support
69 — 73
- Alternate Name Uses the non-standard name:
policy - Disabled From version 69 until version 73 (exclusive): this feature is behind the
#enable-experimental-productivity-features preference (needs to be set to Enabled ). To change preferences in Chrome, visit chrome://flags.
| Firefox Android
Full support
65-
Full support
65
- Alternate Name Uses the non-standard name:
policy - Disabled From version 65: this feature is behind the
dom.security.featurePolicy.webidl.enabled preference (needs to be set to true ). To change preferences in Firefox, visit about:config.
| Opera Android
Full support
48-
Full support
48
- Alternate Name Uses the non-standard name:
policy - Disabled From version 48: this feature is behind the
#enable-experimental-productivity-features preference (needs to be set to Enabled ).
| Safari iOS
No support
No | Samsung Internet Android
Full support
11.0 |
---|
Legend
-
Full support
- Full support
-
No support
- No support
- Experimental. Expect behavior to change in the future.
- Experimental. Expect behavior to change in the future.
- See implementation notes.
- See implementation notes.
- User must explicitly enable this feature.
- User must explicitly enable this feature.
- Uses a non-standard name.
- Uses a non-standard name.