diff --git a/index.html b/index.html index 8cf299c..9187411 100644 --- a/index.html +++ b/index.html @@ -172,10 +172,16 @@

|data:ShareData|, run the following steps:

    -
  1. If the [=current settings object=]'s [=environment settings - object/responsible document=] is not [=allowed to use=] - "web-share", return [=a promise rejected with=] a - {{"NotAllowedError"}} {{DOMException}}. +
  2. Let |document:Document| be the [=current settings object=]'s + [=environment settings object/responsible document=]. +
  3. +
  4. If |document| is not [=Document/fully active=], return [=a + promise rejected with=] an {{"InvalidStateError"}} + {{DOMException}}. +
  5. +
  6. If |document| is not allowed to use "web-share", + return [=a promise rejected with=] a {{"NotAllowedError"}} + {{DOMException}}.
  7. If [=this=].{{Navigator/[[sharePromise]]}} is not `null`, return [=a promise rejected with=] an {{"InvalidStateError"}} @@ -296,9 +302,10 @@

    {{ShareData}} |data:ShareData|, run the following steps:

      -
    1. If the [=current settings object=]'s [=environment settings - object/responsible document=] is not allowed to use - "web-share", return false. +
    2. Let |document:Document| be the [=current settings object=]'s + [=environment settings object/responsible document=]. +
    3. +
    4. If |document| is not [=Document/fully active=], return false.
    5. Return the result of [=validate share data=] with |data| and [=this=]'s [=relevant settings object=]'s [=environment settings