Bug 258187

Summary: When the option of signal for fetch is already aborted, fetch should reject with the AbortSignal's reason if it's not undefined
Product: WebKit Reporter: Cheng You Bai (:cybai) <cyb.ai.815>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Mac (Intel)   
OS: macOS 13   

Cheng You Bai (:cybai)
Reported 2023-06-15 23:08:18 PDT
Currently, if fetch's signal already gets aborted, fetch should reject with the signal's reason if it's not undefined. Related WPT test at https://github.com/web-platform-tests/wpt/blob/83976e7d1f6a7b175947209736bd40e94a7cae77/fetch/api/abort/general.any.js#L37-L45
Attachments
Cheng You Bai (:cybai)
Comment 1 2023-06-15 23:10:04 PDT
I will send a patch to fix this later.
Cheng You Bai (:cybai)
Comment 2 2023-06-15 23:52:20 PDT
Radar WebKit Bug Importer
Comment 3 2023-06-22 23:09:15 PDT
EWS
Comment 4 2023-08-17 23:49:43 PDT
Committed 267033@main (718ac9d81403): <https://commits.webkit.org/267033@main> Reviewed commits have been landed. Closing PR #15039 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.