这是indexloc提供的服务,不要输入任何密码
Skip to content

Commit 66762f1

Browse files
author
Raymes Khoury
committed
Describe that a SecurityError should be returned if the request is denied by feature policy
1 parent 0ec8576 commit 66762f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ <h2>Extensions to the <dfn>Navigator</dfn> interface</h2>
242242

243243
<li><p><em><b>failure</b></em>: Let <var>error</var> be a new <a>DOMException</a>.
244244
This exception's .name should be <code>"SecurityError"</code> if the
245-
user or their security settings denied the application from creating a MIDIAccess instance with the requested options, <code>"AbortError"</code> if the page is going to be closed for a user navigation, <code>"InvalidStateError"</code> if the underlying systems raise any errors, or otherwise it should be <code>"NotSupportedError"</code>.</p></li>
245+
user or their security settings denied the application from creating a MIDIAccess instance with the requested options, or if the error is the result of <var>document</var> not being <a data-cite="!HTML#allowed-to-use">allowed to use</a> the feature, <code>"AbortError"</code> if the page is going to be closed for a user navigation, <code>"InvalidStateError"</code> if the underlying systems raise any errors, or otherwise it should be <code>"NotSupportedError"</code>.</p></li>
246246
<li><p>Call <var>resolver</var>'s <code>reject(value)</code> method with <var>error</var> as value argument.</p></li>
247247
</ol>
248248

0 commit comments

Comments
 (0)