Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update with DOM's abort reason #48

Merged
merged 1 commit into from
Mar 24, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -304,13 +304,13 @@ The <dfn method for=IdleDetector>start(|options|)</dfn> method steps are:
</wpt>
1. Let |result| be [=a new promise=].
1. If |options|["{{signal}}"] is present, then perform the following sub-steps:
1. If |options|["{{signal}}"]'s [=AbortSignal/aborted flag=] is set, then
[=reject=] |result| with an "{{AbortError}}" {{DOMException}} and return
|result|.
1. If |options|["{{signal}}"] is [=AbortSignal/aborted=], then
[=reject=] |result| with |options|["{{signal}}"]'s [=AbortSignal/abort reason=]
and return |result|.
1. [=AbortSignal/add|Add the following abort steps=] to
|options|["{{signal}}"]:
1. Set |this|.{{IdleDetector/[[state]]}} to `"stopped"`.
1. [=Reject=] |result| with an "{{AbortError}}" {{DOMException}}.
1. [=Reject=] |result| with |options|["{{signal}}"]'s [=AbortSignal/abort reason=].

<wpt>
interceptor.https.html
Expand Down