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:03:22 +00:00
|
|
|
* https://wicg.github.io/feature-policy/#policy
|
2018-10-01 06:09:44 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
[NoInterfaceObject]
|
2019-07-08 00:03:22 +00:00
|
|
|
interface Policy {
|
2018-10-01 06:09:44 +00:00
|
|
|
boolean allowsFeature(DOMString feature, optional DOMString origin);
|
|
|
|
sequence<DOMString> allowedFeatures();
|
|
|
|
sequence<DOMString> getAllowlistForFeature(DOMString feature);
|
|
|
|
};
|
2018-11-14 19:02:33 +00:00
|
|
|
|
2019-06-13 09:01:41 +00:00
|
|
|
[Pref="dom.reporting.featurePolicy.enabled"]
|
2018-11-14 19:02:33 +00:00
|
|
|
interface FeaturePolicyViolationReportBody : ReportBody {
|
|
|
|
readonly attribute DOMString featureId;
|
|
|
|
readonly attribute DOMString? sourceFile;
|
|
|
|
readonly attribute long? lineNumber;
|
|
|
|
readonly attribute long? columnNumber;
|
|
|
|
readonly attribute DOMString disposition;
|
|
|
|
};
|