mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-10 02:08:38 +09:00
Issue #2676 - Implement AbortSignal.abort()
This commit is contained in:
parent
949e3f0ac6
commit
9fa4b6fd5d
3 changed files with 9 additions and 2 deletions
|
|
@ -43,6 +43,12 @@ AbortSignal::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
|||
return AbortSignalBinding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
already_AddRefed<AbortSignal> AbortSignal::Abort(GlobalObject& aGlobal) {
|
||||
nsCOMPtr<nsIGlobalObject> global = do_QueryInterface(aGlobal.GetAsSupports());
|
||||
RefPtr<AbortSignal> abortSignal = new AbortSignal(global, true);
|
||||
return abortSignal.forget();
|
||||
}
|
||||
|
||||
bool
|
||||
AbortSignal::Aborted() const
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue