-
Notifications
You must be signed in to change notification settings - Fork 45
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 for AbortSignal's abort reason #53
Conversation
The build should be fixed now (tested with part of your change), but unfortunately when I rerun the build on your PR it uses the old workflow. Could you maybe rebase and push again so it triggers a new run? |
697dbce
to
767cf77
Compare
Build fixed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thanks!
Thanks, merging! Tracking bug for implementation change: https://bugs.chromium.org/p/chromium/issues/detail?id=1272822. |
This updates postTask to use the abort reason when rejecting the associated promise due to a signal aborting. If no abort reason is specified during abort(), the reason defaults to an AbortError, which is the current behavior. Given this and the newness of the API, the impact of this change should be minimal. Spec PR: WICG/scheduling-apis#53 Bug: 1272822 Change-Id: Ia1dbf93e2d7e1b2e507609d0cb6f93f67deddc4e
This updates postTask to use the abort reason when rejecting the associated promise due to a signal aborting. If no abort reason is specified during abort(), the reason defaults to an AbortError, which is the current behavior. Given this and the newness of the API, the impact of this change should be minimal. Spec PR: WICG/scheduling-apis#53 Bug: 1272822 Change-Id: Ia1dbf93e2d7e1b2e507609d0cb6f93f67deddc4e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3611791 Reviewed-by: Nate Chapin <japhet@chromium.org> Commit-Queue: Scott Haseley <shaseley@chromium.org> Cr-Commit-Position: refs/heads/main@{#997819}
This updates postTask to use the abort reason when rejecting the associated promise due to a signal aborting. If no abort reason is specified during abort(), the reason defaults to an AbortError, which is the current behavior. Given this and the newness of the API, the impact of this change should be minimal. Spec PR: WICG/scheduling-apis#53 Bug: 1272822 Change-Id: Ia1dbf93e2d7e1b2e507609d0cb6f93f67deddc4e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3611791 Reviewed-by: Nate Chapin <japhet@chromium.org> Commit-Queue: Scott Haseley <shaseley@chromium.org> Cr-Commit-Position: refs/heads/main@{#997819}
This updates postTask to use the abort reason when rejecting the associated promise due to a signal aborting. If no abort reason is specified during abort(), the reason defaults to an AbortError, which is the current behavior. Given this and the newness of the API, the impact of this change should be minimal. Spec PR: WICG/scheduling-apis#53 Bug: 1272822 Change-Id: Ia1dbf93e2d7e1b2e507609d0cb6f93f67deddc4e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3611791 Reviewed-by: Nate Chapin <japhet@chromium.org> Commit-Queue: Scott Haseley <shaseley@chromium.org> Cr-Commit-Position: refs/heads/main@{#997819}
…tTask, a=testonly Automatic update from web-platform-tests Scheduling APIs: Use abort reason in postTask This updates postTask to use the abort reason when rejecting the associated promise due to a signal aborting. If no abort reason is specified during abort(), the reason defaults to an AbortError, which is the current behavior. Given this and the newness of the API, the impact of this change should be minimal. Spec PR: WICG/scheduling-apis#53 Bug: 1272822 Change-Id: Ia1dbf93e2d7e1b2e507609d0cb6f93f67deddc4e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3611791 Reviewed-by: Nate Chapin <japhet@chromium.org> Commit-Queue: Scott Haseley <shaseley@chromium.org> Cr-Commit-Position: refs/heads/main@{#997819} -- wpt-commits: 4ae557ce407849af3e4cb7ac68af6f364b5ac3f5 wpt-pr: 33824
…tTask, a=testonly Automatic update from web-platform-tests Scheduling APIs: Use abort reason in postTask This updates postTask to use the abort reason when rejecting the associated promise due to a signal aborting. If no abort reason is specified during abort(), the reason defaults to an AbortError, which is the current behavior. Given this and the newness of the API, the impact of this change should be minimal. Spec PR: WICG/scheduling-apis#53 Bug: 1272822 Change-Id: Ia1dbf93e2d7e1b2e507609d0cb6f93f67deddc4e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3611791 Reviewed-by: Nate Chapin <japhet@chromium.org> Commit-Queue: Scott Haseley <shaseley@chromium.org> Cr-Commit-Position: refs/heads/main@{#997819} -- wpt-commits: 4ae557ce407849af3e4cb7ac68af6f364b5ac3f5 wpt-pr: 33824
This updates postTask to use the abort reason when rejecting the associated promise due to a signal aborting. If no abort reason is specified during abort(), the reason defaults to an AbortError, which is the current behavior. Given this and the newness of the API, the impact of this change should be minimal. Spec PR: WICG/scheduling-apis#53 Bug: 1272822 Change-Id: Ia1dbf93e2d7e1b2e507609d0cb6f93f67deddc4e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3611791 Reviewed-by: Nate Chapin <japhet@chromium.org> Commit-Queue: Scott Haseley <shaseley@chromium.org> Cr-Commit-Position: refs/heads/main@{#997819} NOKEYCHECK=True GitOrigin-RevId: 7ed45930d7eff3dd90e0c0f4e6ed511a81da6f17
Part of whatwg/dom#1030. Basically, now
AbortSignal
s can be aborted with custom abort reasons, e.g."TimeoutError"
DOMException
s being a prominent case, so downstream specs need to support this.This is a normative change so please remember to implement it :).