mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
script: Add stub interface for AbortController. (#34519)
Signed-off-by: Josh Matthews <josh@joshmatthews.net> Co-authored-by: syvb <me@iter.ca>
This commit is contained in:
parent
2f64dde623
commit
bc2def0582
5 changed files with 72 additions and 0 deletions
13
components/script/dom/webidls/AbortController.webidl
Normal file
13
components/script/dom/webidls/AbortController.webidl
Normal file
|
@ -0,0 +1,13 @@
|
|||
/* 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/#interface-abortcontroller
|
||||
[Exposed=*, Pref="dom.abort_controller.enabled"]
|
||||
interface AbortController {
|
||||
constructor();
|
||||
|
||||
//[SameObject] readonly attribute AbortSignal signal;
|
||||
|
||||
undefined abort(optional any reason);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue