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.
// TODO(iclelland): add spec for JS exposure in the spec for Feature Policy.
// Please refer to this doc for more details for now:
] interface Policy {
[MeasureAs=FeaturePolicyJSAPI] boolean allowsFeature(DOMString feature, optional DOMString url);
[MeasureAs=FeaturePolicyJSAPI] sequence<DOMString> allowedFeatures();
[MeasureAs=FeaturePolicyJSAPI] sequence<DOMString> getAllowlistForFeature(DOMString feature);