From 33a64c5ffa3214728615a35f4da202868cb60fd4 Mon Sep 17 00:00:00 2001 From: Martin Thomson Date: Thu, 12 May 2016 11:03:42 +1000 Subject: [PATCH] Use NotAllowedError instead of defining a new PermissionDeniedError. Closes #107. --- index.html | 30 +++--------------------------- 1 file changed, 3 insertions(+), 27 deletions(-) diff --git a/index.html b/index.html index 59c1a19..c9693d9 100644 --- a/index.html +++ b/index.html @@ -280,6 +280,8 @@

"http://heycam.github.io/webidl/#idl-ArrayBuffer">ArrayBuffer, BufferSource, + NotAllowedError, and USVString are defined in [[!WEBIDL]]. @@ -605,7 +607,7 @@

permission explicitly for this webapp.
  • If not granted, reject promise with a DOMException whose - name is "PermissionDeniedError" and terminate these steps. + name is "NotAllowedError" and terminate these steps.
  • If the Service Worker is already subscribed, run the following substeps:
      @@ -1225,32 +1227,6 @@

      -
      -

      - Exceptions -

      -

      - The Push API uses the following new DOMException names. -

      - - - - - - - - - -
      - Name - - Description -
      - PermissionDeniedError - - The operation failed because the user denied permission to use the API. -
      -

      Acknowledgements