[Webkit-unassigned] [Bug 281961] New: To signal abort, if the reason is not given, set a new "AbortError" DOMException

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 23 02:37:05 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=281961

            Bug ID: 281961
           Summary: To signal abort, if the reason is not given, set a new
                    "AbortError" DOMException
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: DOM
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: me at marais.co

In the DOM specification for the AbortSignal (see: https://dom.spec.whatwg.org/#abortsignal-signal-abort), point 2 states:

> Set signal's abort reason to the provided reason if given; otherwise, set it to a new "AbortError" DOMException.

We are not currently implementing this behavior. Instead, it's being handled in the IDL bindings for AbortController, which lacks any specification for signaling an abort.

If there is any internal code that calls `AbortSignal::signalAbort`, we should ensure it adheres to this DOM specification — and not leak this implementation detail.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20241023/6d054332/attachment.htm>


More information about the webkit-unassigned mailing list