From a2761ae0f7992d9e3b8259d78c17766fe2635237 Mon Sep 17 00:00:00 2001 From: Anssi Kostiainen Date: Thu, 21 Sep 2017 15:40:54 +0300 Subject: [PATCH] Add Feature Policy integration --- index.html | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 3e0b76d..fa34dd4 100644 --- a/index.html +++ b/index.html @@ -136,7 +136,8 @@

The following concepts, terms, and interfaces are defined in [[!HTML]], - [[!HTML5]], [[!ECMASCRIPT]], [[!WEBIDL]], and [[!SECURE-CONTEXTS]]: + [[!HTML5]], [[!ECMASCRIPT]], [[!WEBIDL]], [[!SECURE-CONTEXTS]], and + [[!FEATURE-POLICY]]:

@@ -497,6 +513,20 @@

+
+

+ Feature Policy integration +

+

+ The Battery Status API is a policy-controlled feature, as + defined by Feature Policy [[!FEATURE-POLICY]]. The feature name + for the Battery Status API is "battery". The default + allowlist for the Battery Status API is ["self"]. When + disabled in a document, the getBattery() method + MUST return a promise which rejects with a SecurityError + exception as its parameter. +

+

Examples