FeaturePolicy
Experimental:This is anexperimental technology
Check theBrowser compatibility table carefully before using this in production.
TheFeaturePolicy interface represents the set ofPermissions Policies applied to the current execution context.
In this article
Instance methods
FeaturePolicy.allowsFeatureExperimentalReturns a Boolean that indicates whether or not a particular feature is enabled in the specified context.
FeaturePolicy.featuresExperimentalReturns a list of names of all features supported by the User Agent. Features whose names appear on the list might not be allowed by the Permissions Policy of the current execution context and/or might be restricted by user-granted permissions.
FeaturePolicy.allowedFeaturesExperimentalReturns a list of names of all features supported by the User Agent and allowed by the Permissions Policy. Note that features appearing on this list might still be behind a user permission.
FeaturePolicy.getAllowlistForFeatureExperimentalReturns the allow for the specified feature.