Skip to content

Commit

Permalink
Link to the Storage spec for persistent-storage's definition (#133)
Browse files Browse the repository at this point in the history
* Don't use an IDL block for PermissionName, so that it can link outside the local spec.

* Remove the local persistent-storage definition now that it's defined in the Storage spec. (whatwg/storage#36)
  • Loading branch information
jyasskin authored Oct 17, 2016
1 parent 9220535 commit 6268ed1
Showing 1 changed file with 15 additions and 32 deletions.
47 changes: 15 additions & 32 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -653,19 +653,21 @@ spec: webidl
<h2 id="permission-registry">
Permission Registry
</h2>
<pre class='idl' title=''>
enum PermissionName {
"geolocation",
"notifications",
"push",
"midi",
"camera",
"microphone",
"speaker",
"device-info",
"background-sync",
"bluetooth",
"persistent-storage",
<!-- IDL blocks can't link outside the current spec, but these enum-values are
supposed to be defined in other specs. -->
<pre class='lang-webidl' link-for="PermissionName">
enum <dfn enum>PermissionName</dfn> {
<a enum-value>"geolocation"</a>,
<a enum-value>"notifications"</a>,
<a enum-value>"push"</a>,
<a enum-value>"midi"</a>,
<a enum-value>"camera"</a>,
<a enum-value>"microphone"</a>,
<a enum-value>"speaker"</a>,
<a enum-value>"device-info"</a>,
<a enum-value>"background-sync"</a>,
<a enum-value>"bluetooth"</a>,
<a enum-value>"persistent-storage"</a>,
};
</pre>
<p>
Expand Down Expand Up @@ -969,25 +971,6 @@ spec: webidl
[[web-background-sync]].
</p>
</section>
<section>
<h3 id="persistent-storage">
Persistent Storage
</h3>
<p>
The <dfn for="PermissionName" enum-value>"persistent-storage"</dfn>
permission allows an origin to make its <a>site storage unit</a> contain a
<a>persistent box</a>. {{"persistent-storage"}} is a <a>boolean
feature</a>.
</p>
<p>
If a <a>realm</a> with <a>origin</a> |O| <a lt="request permission to
use">requests permission to use</a> `{name: "persistent-storage"}` and
that algorithm returns {{"granted"}}, then `{name:
"persistent-storage"}`'s <a>permission state</a> must be {{"granted"}} in
all <a>realms</a> with <a>origin</a> |O| until the UA receives <a>new
information about the user's intent</a>.
</p>
</section>
</section>
<section class='non-normative'>
<h2 id="examples">
Expand Down

0 comments on commit 6268ed1

Please sign in to comment.