Re: [web-nfc] NDEFReader.scan should say when it resolves and returns the promise p (#478)

So currently the text of step 7 says:

> Return p and run the following steps in parallel:
>
>    1. If the obtain permission steps return false, then reject p with a "NotAllowedError" DOMException and abort these steps.
>    2. If there is no underlying NFC Adapter, or if a connection cannot be established, then reject p with a "NotSupportedError" DOMException and return p.
>    3. If the UA is not allowed to access the underlying NFC Adapter (e.g. a user preference), then reject p with a "NotReadableError" DOMException and return p.
>    4. Add reader to the activated reader objects.
>    5. Resolve p.
>    6. Whenever the UA detects NFC technology, run the NFC reading algorithm.

This now seems pretty close, except that items (2) and (3) above should say "and abort these steps" instead of "and return p".

-- 
GitHub Notification of comment by dbaron
Please view or discuss this issue at https://github.com/w3c/web-nfc/issues/478#issuecomment-586025106 using your GitHub account

Received on Thursday, 13 February 2020 23:37:08 UTC