summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/policy/policy.idl
blob: ab6fda8d491103765572f157b503a305d1986056 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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,
  RuntimeEnabled=FeaturePolicyJavaScriptInterface
] interface Policy {
  boolean allowsFeature(DOMString feature, optional DOMString url);
  sequence<DOMString> allowedFeatures();
  sequence<DOMString> getAllowlistForFeature(DOMString feature);
};