Skip to content

Commit

Permalink
Use NotAllowedError instead of defining a new PermissionDeniedError. C…
Browse files Browse the repository at this point in the history
…loses #107.
  • Loading branch information
martinthomson committed May 12, 2016
1 parent 69d0348 commit 33a64c5
Showing 1 changed file with 3 additions and 27 deletions.
30 changes: 3 additions & 27 deletions index.html
Expand Up @@ -280,6 +280,8 @@ <h2>
"http://heycam.github.io/webidl/#idl-ArrayBuffer"><dfn>ArrayBuffer</dfn></a></code>,
<code><a href=
"http://heycam.github.io/webidl/#common-BufferSource"><dfn>BufferSource</dfn></a></code>,
<code><a href=
"http://heycam.github.io/webidl/#notallowederror"><dfn>NotAllowedError</dfn></a></code>,
and <code><a href=
"http://heycam.github.io/webidl/#idl-USVString"><dfn>USVString</dfn></a></code> are defined
in [[!WEBIDL]].
Expand Down Expand Up @@ -605,7 +607,7 @@ <h2>
permission explicitly for this <a>webapp</a>.
</li>
<li>If not granted, reject <var>promise</var> with a <code><a>DOMException</a></code> whose
name is "<code><a>PermissionDeniedError</a></code>" and terminate these steps.
name is "<code><a>NotAllowedError</a></code>" and terminate these steps.
</li>
<li>If the <a>Service Worker</a> is already subscribed, run the following substeps:
<ol>
Expand Down Expand Up @@ -1225,32 +1227,6 @@ <h2>
</tr>
</table>
</section>
<section>
<h2>
Exceptions
</h2>
<p>
The Push API uses the following new <a>DOMException</a> names.
</p>
<table class="simple">
<tr>
<th>
Name
</th>
<th>
Description
</th>
</tr>
<tr>
<td>
<code><dfn>PermissionDeniedError</dfn></code>
</td>
<td>
The operation failed because the user denied permission to use the API.
</td>
</tr>
</table>
</section>
<section class="appendix">
<h2>
Acknowledgements
Expand Down

0 comments on commit 33a64c5

Please sign in to comment.