Skip to content

Commit

Permalink
Bug 1660555 - Make |WorkerSignalFollower| actually an |AbortFollower|…
Browse files Browse the repository at this point in the history
… (that for the moment does nothing when invoked). r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D93891
  • Loading branch information
jswalden committed Oct 30, 2020
1 parent 160ae8c commit c138eba
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dom/fetch/Fetch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ NS_IMPL_CYCLE_COLLECTING_RELEASE(AbortSignalMainThread)

class AbortSignalProxy;

class WorkerSignalFollower final : public nsISupports {
class WorkerSignalFollower final : public AbortFollower {
public:
// This runnable propagates changes from the AbortSignalImpl on workers to the
// AbortSignalImpl on main-thread.
Expand All @@ -129,6 +129,8 @@ class WorkerSignalFollower final : public nsISupports {
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
NS_DECL_CYCLE_COLLECTION_CLASS(WorkerSignalFollower)

void RunAbortAlgorithm() override {}

private:
~WorkerSignalFollower() = default;
};
Expand All @@ -139,9 +141,11 @@ NS_IMPL_CYCLE_COLLECTING_ADDREF(WorkerSignalFollower)
NS_IMPL_CYCLE_COLLECTING_RELEASE(WorkerSignalFollower)

NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN(WorkerSignalFollower)
AbortFollower::Unlink(static_cast<AbortFollower*>(tmp));
NS_IMPL_CYCLE_COLLECTION_UNLINK_END

NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN(WorkerSignalFollower)
AbortFollower::Traverse(static_cast<AbortFollower*>(tmp), cb);
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END

NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(WorkerSignalFollower)
Expand Down

0 comments on commit c138eba

Please sign in to comment.