W3C home > Mailing lists > Public > public-webauthn@w3.org > June 2018

Re: [webauthn] Authenticator selection extension needs to define snapshotting behavior

From: Boris Zbarsky via GitHub <sysbot+gh@w3.org>
Date: Sat, 30 Jun 2018 05:04:53 +0000
To: public-webauthn@w3.org
Message-ID: <issue_comment.created-401517687-1530335093-sysbot+gh@w3.org>
Sorry for the lag here...

What I term "snapshotting" is https://heycam.github.io/webidl/#dfn-get-buffer-source-copy and its behavior is defined at https://heycam.github.io/webidl/#ref-for-dfn-get-buffer-source-copy%E2%91%A0

Like the text at that first link says (though you have to scroll up to start of paragraph to read it):

> To inspect or manipulate the bytes inside the buffer, specification prose must first either get a reference to the bytes held by the buffer source or get a copy of the bytes held by the buffer source. 

and this needs to be an explicit algorithm step that happens at some point before the bytes can be used for anything.  This applies to all BufferSource uses.

As for the other uses in webauthn....  Taking as an example authenticatorMakeCredential, it walks the list of PublicKeyCredentialDescriptor it has and for each one does user interaction... before returning?  Or is all this running in parallel?  I think this is all running in parallel.... If so, then it probably can't access a BufferSource directly and needs to have the bytes in some parallel-friendly form instead.

-- 
GitHub Notification of comment by bzbarsky
Please view or discuss this issue at https://github.com/w3c/webauthn/issues/294#issuecomment-401517687 using your GitHub account
Received on Saturday, 30 June 2018 05:04:55 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 07:26:33 UTC