diff --git a/components/script/dom/abortcontroller.rs b/components/script/dom/abortcontroller.rs index 7911ad7cf47..3a7ca17220d 100644 --- a/components/script/dom/abortcontroller.rs +++ b/components/script/dom/abortcontroller.rs @@ -69,4 +69,10 @@ impl AbortControllerMethods for AbortController { // to signal abort on this with reason if it is given. self.signal_abort(cx, reason, can_gc); } + + /// + fn Signal(&self) -> DomRoot { + // The signal getter steps are to return this’s signal. + self.signal.as_rooted() + } } diff --git a/components/script_bindings/webidls/AbortController.webidl b/components/script_bindings/webidls/AbortController.webidl index cef49010d3c..bb20ec24955 100644 --- a/components/script_bindings/webidls/AbortController.webidl +++ b/components/script_bindings/webidls/AbortController.webidl @@ -7,7 +7,7 @@ interface AbortController { constructor(); - //[SameObject] readonly attribute AbortSignal signal; + [SameObject] readonly attribute AbortSignal signal; undefined abort(optional any reason); };