You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p><codeclass="idl"><adata-link-type="idl" href="#credential">Credential</a></code> objects implement <codeclass="idl"><adata-link-type="idl" href="http://www.w3.org/TR/html5/infrastructure.html#transferable">Transferable</a></code>, and MUST support the
821
-
the <adata-link-type="dfn" href="http://www.w3.org/TR/html5/infrastructure.html#structured-clone">structured clone</a> algorithm by defining a cloning mechanism.</p>
the <adata-link-type="dfn" href="http://www.w3.org/TR/html5/infrastructure.html#structured-clone">structured clone</a> algorithm. Unless otherwise specified, the cloning
825
+
mechanism for all objects which implement <codeclass="idl"><adata-link-type="idl" href="#credential">Credential</a></code> is defined in
<p>Given a <codeclass="idl"><adata-link-type="idl" href="#credential">Credential</a></code> (<var>input</var>), the following algorithm
1982
+
defines the way in which a <adata-link-type="dfn" href="http://www.w3.org/TR/html5/infrastructure.html#structured-clone">structured clone</a> will be produced. This
1983
+
algorithm plugs into the <adata-link-type="dfn" href="http://www.w3.org/TR/html5/infrastructure.html#internal-structured-cloning-algorithm">internal structured cloning algorithm</a>
1984
+
defined in <adata-link-type="biblio" href="#biblio-html">[HTML]</a>:</p>
1985
+
1986
+
1987
+
<ol>
1988
+
1989
+
<li>
1990
+
Let <var>output</var> be a <codeclass="idl"><adata-link-type="idl" href="#credential">Credential</a></code> object of the same type as
1991
+
<var>input</var>’s <code>constructor</code>.
1992
+
1993
+
1994
+
1995
+
<li>
1996
+
For each internal slot on <var>input</var>:
1997
+
1998
+
1999
+
<ol>
2000
+
2001
+
<li>
2002
+
Let <var>name</var> be the name of the slot.
2003
+
2004
+
2005
+
2006
+
<li>
2007
+
Let <var>source value</var> be the slot’s value.
2008
+
2009
+
2010
+
2011
+
<li>
2012
+
Let <var>cloned value</var> be the result of invoking the <adata-link-type="dfn" href="http://www.w3.org/TR/html5/infrastructure.html#internal-structured-cloning-algorithm">internal
2013
+
structured cloning algorithm</a> with <var>source value</var> as the
2014
+
"<code>input</code>" argument, and <var>memory</var> as the
2015
+
"<code>memory</code>" argument.
2016
+
2017
+
2018
+
2019
+
<li>
2020
+
If an exception results from the previous step, abort the overall
2021
+
<adata-link-type="dfn" href="http://www.w3.org/TR/html5/infrastructure.html#structured-clone">structured clone</a> algorithm, and pass that exception through
2022
+
to the caller.
2023
+
2024
+
2025
+
2026
+
<li>
2027
+
Add a new slot to <var>output</var> having name <var>name</var> and
<pclass="issue" id="issue-e1d9f1af"><aclass="self-link" href="#issue-e1d9f1af"></a> Add some thoughts here about when and how the API
3040
3114
should be used, especially with regard to <codeclass="idl"><adata-link-type="idl" href="#dom-credentialrequestoptions-suppressui">suppressUI</a></code>. <ahref="https://github.com/w3c/webappsec/issues/290"><https://github.com/w3c/webappsec/issues/290></a></p>
0 commit comments