Backed out 2 changesets (bug 1908320) for causing wr failures on align-items-baseline...
[gecko.git] / dom / webidl / FeaturePolicy.webidl
blob18f683f2022f282d37fb3af0e1000fd652d7c69d
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3  * License, v. 2.0. If a copy of the MPL was not distributed with this
4  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
5  *
6  * For more information on this interface, please see
7  * https://w3c.github.io/webappsec-feature-policy/#idl-index
8  */
10 [LegacyNoInterfaceObject,
11  Exposed=Window]
12 interface FeaturePolicy {
13   boolean allowsFeature(DOMString feature, optional DOMString origin);
14   sequence<DOMString> features();
15   sequence<DOMString> allowedFeatures();
16   sequence<DOMString> getAllowlistForFeature(DOMString feature);
19 [Pref="dom.reporting.featurePolicy.enabled",
20  Exposed=Window]
21 interface FeaturePolicyViolationReportBody : ReportBody {
22   readonly attribute DOMString featureId;
23   readonly attribute DOMString? sourceFile;
24   readonly attribute long? lineNumber;
25   readonly attribute long? columnNumber;
26   readonly attribute DOMString disposition;