blob: beadb010328419f895f8e7f00ba00e6f7a1c1b73 [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// https://wicg.github.io/feature-policy/#the-policy-object
[
NoInterfaceObject,
OriginTrialEnabled=FeaturePolicyJavaScriptInterface,
ImplementedAs=DOMFeaturePolicy
] interface FeaturePolicy {
[MeasureAs=FeaturePolicyJSAPI] boolean allowsFeature(DOMString feature, optional DOMString url);
[MeasureAs=FeaturePolicyJSAPI] sequence<DOMString> features();
[MeasureAs=FeaturePolicyJSAPI] sequence<DOMString> allowedFeatures();
[MeasureAs=FeaturePolicyJSAPI] sequence<DOMString> getAllowlistForFeature(DOMString feature);
};