blob: d2d5ad3169d7ebd8edf16d0a9a53c70b2dd4136f [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
// TODO(iclelland): add spec for JS exposure in the spec for Feature Policy.
// Please refer to this doc for more details for now:
// https://docs.google.com/a/chromium.org/document/d/1wvk3cXkblNnbkMcsKayseK-k0SMGiP9b9fQFgfpqQpc/edit?usp=sharing
[
NoInterfaceObject,
OriginTrialEnabled=FeaturePolicyJavaScriptInterface
] interface Policy {
[MeasureAs=FeaturePolicyJSAPI] boolean allowsFeature(DOMString feature, optional DOMString url);
[MeasureAs=FeaturePolicyJSAPI] sequence<DOMString> allowedFeatures();
[MeasureAs=FeaturePolicyJSAPI] sequence<DOMString> getAllowlistForFeature(DOMString feature);
};