Skip to content

Commit 6dc7be8

Browse files
committed
Fix #592: scan rejects prior scan
Signed-off-by: Zoltan Kis <[email protected]>
1 parent 0a0a609 commit 6dc7be8

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

index.html

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2225,6 +2225,28 @@ <h2>The <dfn>record type</dfn> string</h2>
22252225
</div>
22262226
</section>
22272227

2228+
<section><h3>Aborting pending scan operation</h3>
2229+
<div>
2230+
To attempt to <dfn>abort a pending scan operation</dfn> on an
2231+
<a>environment settings object</a>, perform the following steps:
2232+
<ol class=algorithm>
2233+
<li>
2234+
If there is no <a>pending read tuple</a> |tuple|, abort these steps.
2235+
</li>
2236+
<li>
2237+
If |tuple|'s reader has already initiated an ongoing NFC data transfer,
2238+
abort these steps.
2239+
</li>
2240+
<li>
2241+
Reject |tuple|'s promise with an {{"InvalidStateError"}} {{DOMException}}.
2242+
</li>
2243+
<li>
2244+
Clear the <a>pending read tuple</a> and abort these steps.
2245+
</li>
2246+
</ol>
2247+
</div>
2248+
</section>
2249+
22282250
<section><h3>Releasing NFC</h3>
22292251
<p>
22302252
To <dfn>release NFC</dfn> on an <a>environment settings object</a>,
@@ -3419,6 +3441,9 @@ <h3><dfn>Writing content</dfn></h3>
34193441
browsing context</a>, then reject |p| with and
34203442
{{"InvalidStateError"}} {{DOMException}} and return |p|.
34213443
</li>
3444+
<li>
3445+
Attempt to <a>abort a pending scan operation</a>.
3446+
</li>
34223447
<li>
34233448
Let |reader:NDEFReader| be the {{NDEFReader}} instance.
34243449
</li>

0 commit comments

Comments
 (0)