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 #25

Merged
merged 1 commit into from
Mar 30, 2022
Merged

Conversation

nidhijaju
Copy link
Contributor

whatwg/dom#1027 removed the "aborted flag" from DOM's AbortSignal.
This change updates the EyeDropper API spec with the aborted predicate and rejecting promises with the signal's abort reason, instead of with a new "AbortError" DOMException.

@nidhijaju
Copy link
Contributor Author

Hi @ipopescu93, just wondering if you'd be able to take a look at this. Thank you!

@ipopescu93
Copy link
Collaborator

LGTM, thanks for taking care of this!

@nidhijaju nidhijaju deleted the update-abortreason branch March 30, 2022 22:59
aarongable pushed a commit to chromium/chromium that referenced this pull request Mar 31, 2022
This change updates the open() method and abort steps attached to the
provided AbortSginal so that the reason provided to the AbortController
is used to reject the Promise returned by open().

The web-visible effect of this change is minimal because by default the
abort reason is set to the same "AbortError" DOMException which was
already used.

The corresponding specification change is:
WICG/eyedropper-api#25

Change-Id: I414bcd2ae7cd8fba3031c66ba98a5d04b0a7c740
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3559669
Reviewed-by: Ionel Popescu <iopopesc@microsoft.com>
Commit-Queue: Nidhi Jaju <nidhijaju@chromium.org>
Cr-Commit-Position: refs/heads/main@{#987267}
mjfroman pushed a commit to mjfroman/moz-libwebrtc-third-party that referenced this pull request Oct 14, 2022
This change updates the open() method and abort steps attached to the
provided AbortSginal so that the reason provided to the AbortController
is used to reject the Promise returned by open().

The web-visible effect of this change is minimal because by default the
abort reason is set to the same "AbortError" DOMException which was
already used.

The corresponding specification change is:
WICG/eyedropper-api#25

Change-Id: I414bcd2ae7cd8fba3031c66ba98a5d04b0a7c740
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3559669
Reviewed-by: Ionel Popescu <iopopesc@microsoft.com>
Commit-Queue: Nidhi Jaju <nidhijaju@chromium.org>
Cr-Commit-Position: refs/heads/main@{#987267}
NOKEYCHECK=True
GitOrigin-RevId: fde94645339d474fb580c42312d9f5b376757c03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants