Bug 1526591 - Remove devtools.inspector.shapesHighlighter.enabled pref. r=rcaliman
[gecko.git] / dom / webidl / FeaturePolicy.webidl
blobf8e6910eb684115b0baef69178606c1c3a164d26
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://wicg.github.io/feature-policy/#policy
8  */
10 [NoInterfaceObject]
11 interface Policy {
12   boolean allowsFeature(DOMString feature, optional DOMString origin);
13   sequence<DOMString> allowedFeatures();
14   sequence<DOMString> getAllowlistForFeature(DOMString feature);
17 [Func="mozilla::dom::DOMPrefs::dom_reporting_featurePolicy_enabled"]
18 interface FeaturePolicyViolationReportBody : ReportBody {
19   readonly attribute DOMString featureId;
20   readonly attribute DOMString? sourceFile;
21   readonly attribute long? lineNumber;
22   readonly attribute long? columnNumber;
23   readonly attribute DOMString disposition;