Re: [webauthn] Define what happens when the Document loses focus

The WebNFC spec defines a member variable that is checked at explicit points during the algorithm run. I'm wondering if we could do something simpler, like:

## Handling Window Visibility and Focus ## {#visibility-and-focus}

When the [=Window=] object associated with the [=Document=] using the Web Authentication API {{loses focus}}, then:
1. The user agent SHOULD cancel running operations for each [=authenticator=].

Note: This would have the effect of stopping the display of credential selections, or halting a blinking light.

2. The user agent MUST ensure that running operations ultimately resolve their {{Promise}}s with a {{DOMException}} whose name is "{{NotAllowedError}}".

-- 
GitHub Notification of comment by jcjones
Please view or discuss this issue at https://github.com/w3c/webauthn/issues/316#issuecomment-302528522 using your GitHub account

Received on Thursday, 18 May 2017 20:15:01 UTC