2018-10-01 06:09:44 +00:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* For more information on this interface, please see
|
2019-07-08 00:10:56 +00:00
|
|
|
* https://w3c.github.io/webappsec-feature-policy/#idl-index
|
2018-10-01 06:09:44 +00:00
|
|
|
*/
|
|
|
|
|
2021-04-11 03:13:30 +00:00
|
|
|
[LegacyNoInterfaceObject,
|
2019-09-27 15:26:14 +00:00
|
|
|
Exposed=Window]
|
2019-07-08 00:10:56 +00:00
|
|
|
interface FeaturePolicy {
|
2018-10-01 06:09:44 +00:00
|
|
|
boolean allowsFeature(DOMString feature, optional DOMString origin);
|
2019-07-08 02:03:18 +00:00
|
|
|
sequence<DOMString> features();
|
2018-10-01 06:09:44 +00:00
|
|
|
sequence<DOMString> allowedFeatures();
|
|
|
|
sequence<DOMString> getAllowlistForFeature(DOMString feature);
|
|
|
|
};
|
2018-11-14 19:02:33 +00:00
|
|
|
|
2019-09-27 15:26:14 +00:00
|
|
|
[Pref="dom.reporting.featurePolicy.enabled",
|
|
|
|
Exposed=Window]
|
2018-11-14 19:02:33 +00:00
|
|
|
interface FeaturePolicyViolationReportBody : ReportBody {
|
|
|
|
readonly attribute DOMString featureId;
|
2024-08-01 17:12:48 +00:00
|
|
|
readonly attribute UTF8String? sourceFile;
|
2018-11-14 19:02:33 +00:00
|
|
|
readonly attribute long? lineNumber;
|
|
|
|
readonly attribute long? columnNumber;
|
|
|
|
readonly attribute DOMString disposition;
|
|
|
|
};
|