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   

Description Cheng You Bai (:cybai) 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
Comment 1 Cheng You Bai (:cybai) 2023-06-15 23:10:04 PDT
I will send a patch to fix this later.
Comment 2 Cheng You Bai (:cybai) 2023-06-15 23:52:20 PDT
Pull request: https://github.com/WebKit/WebKit/pull/15039
Comment 3 Radar WebKit Bug Importer 2023-06-22 23:09:15 PDT
<rdar://problem/111201381>
Comment 4 EWS 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.