Issue #1587 - Part 8: Remove controller follow/unfollow

Since it didn't end up being in the final spec after all.
This commit is contained in:
Moonchild 2020-06-12 01:08:26 +00:00 • committed by Roy Tam
commit 8ac3ccd67a
6 changed files with 1 additions and 124 deletions

View file

@ -68,8 +68,6 @@ AbortSignal::Abort()
init.mBubbles = false;
init.mCancelable = false;
// TODO which kind of event should we dispatch here?
RefPtr<Event> event =
Event::Constructor(this, NS_LITERAL_STRING("abort"), init);
event->SetTrusted(true);
@ -94,27 +92,6 @@ AbortSignal::RemoveFollower(AbortSignal::Follower* aFollower)
mFollowers.RemoveElement(aFollower);
}
bool
AbortSignal::CanAcceptFollower(AbortSignal::Follower* aFollower) const
{
MOZ_DIAGNOSTIC_ASSERT(aFollower);
if (!mController) {
return true;
}
if (aFollower == mController) {
return false;
}
AbortSignal* following = mController->Following();
if (!following) {
return true;
}
return following->CanAcceptFollower(aFollower);
}
// AbortSignal::Follower
// ----------------------------------------------------------------------------
@ -128,10 +105,6 @@ AbortSignal::Follower::Follow(AbortSignal* aSignal)
{
MOZ_DIAGNOSTIC_ASSERT(aSignal);
if (!aSignal->CanAcceptFollower(this)) {
return;
}
Unfollow();
mFollowingSignal = aSignal;