Skip to content

Commit

Permalink
Add Feature Policy integration
Browse files Browse the repository at this point in the history
  • Loading branch information
anssiko committed Sep 21, 2017
1 parent 5c58cb1 commit a2761ae
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ <h2>
</h2>
<p>
The following concepts, terms, and interfaces are defined in [[!HTML]],
[[!HTML5]], [[!ECMASCRIPT]], [[!WEBIDL]], and [[!SECURE-CONTEXTS]]:
[[!HTML5]], [[!ECMASCRIPT]], [[!WEBIDL]], [[!SECURE-CONTEXTS]], and
[[!FEATURE-POLICY]]:
</p>
<ul>
<li>
Expand Down Expand Up @@ -219,6 +220,21 @@ <h2>
"https://html.spec.whatwg.org/multipage/origin.html#same-origin-domain">
<dfn>same-origin domain</dfn></a>
</li>
<li>
<a href=
"https://wicg.github.io/feature-policy/#policy-controlled-feature"><dfn>
policy-controlled feature</dfn></a>
</li>
<li>
<a href=
"https://wicg.github.io/feature-policy/#feature-name"><dfn>feature
name</dfn></a>
</li>
<li>
<a href=
"https://wicg.github.io/feature-policy/#default-allowlist"><dfn>default
allowlist</dfn></a>
</li>
</ul>
</section>
<section class="informative">
Expand Down Expand Up @@ -497,6 +513,20 @@ <h2>
</table>
</section>
</section>
<section>
<h2>
Feature Policy integration
</h2>
<p data-link-for="Navigator">
The Battery Status API is a <a>policy-controlled feature</a>, as
defined by Feature Policy [[!FEATURE-POLICY]]. The <a>feature name</a>
for the Battery Status API is "<code>battery</code>". The <a>default
allowlist</a> for the Battery Status API is <code>["self"]</code>. When
disabled in a document, the <code><a>getBattery</a>()</code> method
MUST return a <a>promise</a> which rejects with a <a>SecurityError</a>
exception as its parameter.
</p>
</section>
<section class="informative">
<h2>
Examples
Expand Down

0 comments on commit a2761ae

Please sign in to comment.