Issue #2676 - Don't keep AbortController alive for AbortSignal

This commit is contained in:
Moonchild 2025-01-16 16:50:23 +01:00 • committed by roytam1
commit 949e3f0ac6
3 changed files with 5 additions and 11 deletions

View file

@ -11,7 +11,6 @@
namespace mozilla {
namespace dom {
class AbortController;
class AbortSignal;
class AbortSignal final : public DOMEventTargetHelper
@ -38,7 +37,7 @@ public:
NS_DECL_ISUPPORTS_INHERITED
NS_DECL_CYCLE_COLLECTION_CLASS_INHERITED(AbortSignal, DOMEventTargetHelper)
AbortSignal(AbortController* aController, bool aAborted);
AbortSignal(nsIGlobalObject* aGlobalObject, bool aAborted);
explicit AbortSignal(bool aAborted);
JSObject*
@ -61,8 +60,6 @@ public:
private:
~AbortSignal() = default;
RefPtr<AbortController> mController;
// Raw pointers. Follower unregisters itself in the DTOR.
nsTArray<Follower*> mFollowers;