| // 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); |
| }; |