summaryrefslogtreecommitdiffstats
path: root/dom/fetch/FetchSignal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dom/fetch/FetchSignal.cpp')
-rw-r--r--dom/fetch/FetchSignal.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/dom/fetch/FetchSignal.cpp b/dom/fetch/FetchSignal.cpp
index 1924263e8..07ad6b53d 100644
--- a/dom/fetch/FetchSignal.cpp
+++ b/dom/fetch/FetchSignal.cpp
@@ -37,6 +37,10 @@ FetchSignal::FetchSignal(FetchController* aController,
, mAborted(aAborted)
{}
+FetchSignal::FetchSignal(bool aAborted)
+ : mAborted(aAborted)
+{}
+
JSObject*
FetchSignal::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
@@ -95,6 +99,10 @@ FetchSignal::CanAcceptFollower(FetchSignal::Follower* aFollower) const
{
MOZ_DIAGNOSTIC_ASSERT(aFollower);
+ if (!mController) {
+ return true;
+ }
+
if (aFollower == mController) {
return false;
}