2018-10-01 09:09:44 +03: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 03:10:56 +03:00
|
|
|
* https://w3c.github.io/webappsec-feature-policy/#idl-index
|
2018-10-01 09:09:44 +03:00
|
|
|
*/
|
|
|
|
|
2019-09-27 18:26:14 +03:00
|
|
|
[NoInterfaceObject,
|
|
|
|
Exposed=Window]
|
2019-07-08 03:10:56 +03:00
|
|
|
interface FeaturePolicy {
|
2018-10-01 09:09:44 +03:00
|
|
|
boolean allowsFeature(DOMString feature, optional DOMString origin);
|
2019-07-08 05:03:18 +03:00
|
|
|
sequence<DOMString> features();
|
2018-10-01 09:09:44 +03:00
|
|
|
sequence<DOMString> allowedFeatures();
|
|
|
|
sequence<DOMString> getAllowlistForFeature(DOMString feature);
|
|
|
|
};
|
2018-11-14 22:02:33 +03:00
|
|
|
|
2019-09-27 18:26:14 +03:00
|
|
|
[Pref="dom.reporting.featurePolicy.enabled",
|
|
|
|
Exposed=Window]
|
2018-11-14 22:02:33 +03:00
|
|
|
interface FeaturePolicyViolationReportBody : ReportBody {
|
|
|
|
readonly attribute DOMString featureId;
|
|
|
|
readonly attribute DOMString? sourceFile;
|
|
|
|
readonly attribute long? lineNumber;
|
|
|
|
readonly attribute long? columnNumber;
|
|
|
|
readonly attribute DOMString disposition;
|
|
|
|
};
|