FeaturePolicy.webidl (1023B)
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 */ 9 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); 17 }; 18 19 [Pref="dom.reporting.featurePolicy.enabled", 20 Exposed=Window] 21 interface FeaturePolicyViolationReportBody : ReportBody { 22 readonly attribute DOMString featureId; 23 readonly attribute UTF8String? sourceFile; 24 readonly attribute long? lineNumber; 25 readonly attribute long? columnNumber; 26 readonly attribute DOMString disposition; 27 };