[webkit-changes] [WebKit/WebKit] 718ac9: Reject with AbortSignal's reason when the signal i...

cybai (Haku) noreply at github.com
Thu Aug 17 23:49:52 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 718ac9d814039371b482827bd17238a0ea7e1cc0
      https://github.com/WebKit/WebKit/commit/718ac9d814039371b482827bd17238a0ea7e1cc0
  Author: Cheng-You Bai <cyb.ai.815 at gmail.com>
  Date:   2023-08-17 (Thu, 17 Aug 2023)

  Changed paths:
    M LayoutTests/imported/w3c/web-platform-tests/fetch/api/abort/general.any-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/fetch/api/abort/general.any.serviceworker-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/fetch/api/abort/general.any.sharedworker-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/fetch/api/abort/general.any.worker-expected.txt
    M Source/WebCore/Modules/fetch/WindowOrWorkerGlobalScopeFetch.cpp

  Log Message:
  -----------
  Reject with AbortSignal's reason when the signal is already aborted
https://bugs.webkit.org/show_bug.cgi?id=258187

Reviewed by Ryosuke Niwa.

Previously, WebKit always reject fetch with AbortError when the signal
is already aborted. However, based on the spec, when the abort reason
is given, we should reject the promise with the given reason.

* LayoutTests/imported/w3c/web-platform-tests/fetch/api/abort/general.any-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/fetch/api/abort/general.any.serviceworker-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/fetch/api/abort/general.any.sharedworker-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/fetch/api/abort/general.any.worker-expected.txt:
* Source/WebCore/Modules/fetch/WindowOrWorkerGlobalScopeFetch.cpp:
(WebCore::doFetch):

Canonical link: https://commits.webkit.org/267033@main




More information about the webkit-changes mailing list