diff --git a/index.bs b/index.bs index 6acd2cb..39da61f 100644 --- a/index.bs +++ b/index.bs @@ -197,7 +197,7 @@ spec:webidl; type:interface; text:Promise A |descriptor|'s permission state for an optional environment settings object |settings| is the result of the following algorithm, which returns one of - {{PermissionState/"granted"}}, {{PermissionState/"prompt"}}, or {{PermissionState/"denied"}}: + the {{PermissionState}} enum values or failure:

  1. @@ -213,6 +213,9 @@ spec:webidl; type:interface; text:Promise |descriptor|.{{PermissionDescriptor/name}} and |settings| has an associated `Document` named document, run the following step:
      +
    1. + If |document| is not [=Document/fully active=], return failure. +
    2. If document is not allowed to use the feature identified by |descriptor|.{{PermissionDescriptor/name}} @@ -464,6 +467,12 @@ spec:webidl; type:interface; text:Promise it MUST asynchronously run the following steps:

        +
      1. + Let |document| this |status|'s [=relevant global object=]'s [=associated Document=]. +
      2. +
      3. + If |document| is null or |document| is not [=Document/fully active=], terminate this algorithm. +
      4. Run status@{{PermissionStatus/[[query]]}}.{{PermissionDescriptor/name}}'s permission query algorithm, passing status@{{PermissionStatus/[[query]]}} @@ -512,6 +521,15 @@ spec:webidl; type:interface; text:Promise permissionDesc:

          +
        1. + If [=this=] [=relevant global object=] is a {{Window}} object, then: +
            +
          1. If the [=current settings object's=] associated `Document` is not + [=Document/fully active=], return [=a promise rejected with=] a + {{"InvalidStateError"}} {{DOMException}}. +
          2. +
          +
        2. Let |rootDesc| be the object |permissionDesc| refers to, converted to an IDL value of type {{PermissionDescriptor}}. If this throws an exception, return a promise rejected with that exception and abort