Document.featurePolicy

The featurePolicy read-only property of the Document interface returns the FeaturePolicy interface which provides a simple API for inspecting the feature policies applied to a specific document.

Syntax

var policy = iframeElement.featurePolicy

Value

A FeaturePolicy object that can be used to inspect the Feature Policy settings applied to the document.

Specification

Specification Status Comment
Feature Policy Editor's Draft Initial definition.

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
featurePolicy
Experimental
Chrome Full support 74
Notes
Full support 74
Notes
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
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 Disabled
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 No support NoFirefox Full support 69
Disabled
Full support 69
Disabled
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 Disabled
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 NoOpera Full support 62
Full support 62
No support 60 — 62
Disabled
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 Disabled
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 NoWebView Android Full support 74
Notes
Full support 74
Notes
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
Notes
Full support 74
Notes
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
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 Disabled
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
Alternate Name Disabled
Full support 65
Alternate Name Disabled
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
Alternate Name Disabled
Full support 48
Alternate Name Disabled
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 NoSamsung Internet Android ?

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown
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.