mirror of
https://github.com/servo/servo.git
synced 2025-07-19 13:23:46 +01:00
This is a stub for `AbortSignal`, which we would like to merge first in order to work in parallel on https://github.com/servo/servo/issues/34866, and perhaps also https://github.com/servo/servo/issues/36936 --------- Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com> Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com> Co-authored-by: Taym Haddadi <haddadi.taym@gmail.com>
14 lines
478 B
Text
14 lines
478 B
Text
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
|
|
|
// https://dom.spec.whatwg.org/#abortsignal
|
|
|
|
[Exposed=*, Pref="dom_abort_controller_enabled"]
|
|
interface AbortSignal : EventTarget {
|
|
readonly attribute boolean aborted;
|
|
readonly attribute any reason;
|
|
undefined throwIfAborted();
|
|
|
|
attribute EventHandler onabort;
|
|
};
|