W3C home > Mailing lists > Public > public-webappsec@w3.org > October 2018

Re: which algorithm do we use for copying buffer sources in dictionaries?

From: J.C. Jones <jc@mozilla.com>
Date: Tue, 23 Oct 2018 02:29:46 -0600
Message-ID: <CAObDDPB1BUP9BGhEZ59UvsehA4KXv7cLF0MTmY18moAgui+ZsA@mail.gmail.com>
To: "=JeffH" <Jeff.Hodges@kingsmountain.com>
Cc: public-webappsec@w3.org
For what it's worth, I am in favor of `<dfn>create a copy of any buffer
sources' data</dfn>` because it is closer to what actually happens today in
Firefox (at least).

Particularly, everything in the dictionary is passed by reference when we
go async, except for buffers which are cloned.

A "deep copy" would suggest we should make some code changes to how
WebAuthn is called by Credential Management. At least how I read it.

Cheers,
J.C.

On Tue, Oct 23, 2018 at 2:03 AM =JeffH <Jeff.Hodges@kingsmountain.com>
wrote:

> given
> <
> https://github.com/w3c/webappsec-credential-management/issues/128#issuecomment-427607200>,
>
> do we use the shorter..
>
> `<dfn>create a copy of any buffer sources' data</dfn>`
>
> ..one, or the..
>
> `<dfn>create a deep copy including any buffer sources</dfn>`
>
> ..one?
>
> Plus, what is the rationale for preferring one over the other?
>
> see also:
> <
> https://github.com/w3c/webappsec-credential-management/issues/128#issuecomment-432133586
> >
>
> thanks,
>
> =JeffH
>
>
Received on Tuesday, 23 October 2018 08:30:30 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 23 October 2018 08:30:31 UTC