Skip to content

Commit 0f83efd

Browse files
shs96cAutomatedTester
authored andcommitted
Specify how to deserialize as a proxy
1 parent 641896c commit 0f83efd

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

webdriver-spec.html

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1996,6 +1996,37 @@ <h3>Proxy</h3>
19961996
</tr>
19971997
</table>
19981998

1999+
<p>The <a>remote end</a> steps to <dfn>deserialize as a proxy</dfn>
2000+
argument <var>parameter</var> are:
2001+
2002+
<ol>
2003+
<li><p>If <var>parameter</var> is not a JSON <a>Object</a> return
2004+
an <a>error</a> with <a>error code</a> <a>invalid argument</a>.
2005+
2006+
<li><p>Let <var>proxy</var> be a new, empty
2007+
<a>proxy configuration object</a>.
2008+
2009+
<li><p>For each enumerable <a>own property</a> in <var>parameter</var>
2010+
run the following substeps:
2011+
<ol>
2012+
<li><p>Let <var>key</var> be the name of the property.
2013+
2014+
<li><p>Let <var>value</var> be the result of <a>getting a
2015+
property</a> named <var>name</var> from <var>parameter</var>.
2016+
2017+
<li><p>If there is no matching <code>key</code> for <var>key</var>
2018+
in the <a>proxy configuration</a> table return an <a>error</a>
2019+
with <a>error code</a> <a>invalid argument</a>.
2020+
2021+
<li><p>If <var>value</var> is not one of the
2022+
<code>valid values</code> for that <code>key</code>, return
2023+
an <a>error</a> with <a>error code</a> <a>invalid argument</a>.
2024+
2025+
<li><p><a>Set a property</a> <var>key</var> to <var>value</var>
2026+
on <var>proxy</var>.
2027+
</ol>
2028+
</ol>
2029+
19992030
<p>A <dfn>proxy configuration object</dfn> is a
20002031
JSON <a>Object</a> where each of its <a>own properties</a> matching
20012032
keys in the <a>proxy configuration</a> meets the validity criteria for

0 commit comments

Comments
 (0)