summaryrefslogtreecommitdiffstats
path: root/dom/fetch/FetchSignal.cpp
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-06-10 21:51:44 +0000
committerMoonchild <moonchild@palemoon.org>2020-06-10 21:51:44 +0000
commit1ca6039fb86cfab374fa0f4d37d9a084aa810f28 (patch)
tree36574bfa79ff61cecced5274339dee921ac7e77e /dom/fetch/FetchSignal.cpp
parentbe82b3331878fb2956d22d9bd3906fca3ab39751 (diff)
downloadUXP-1ca6039fb86cfab374fa0f4d37d9a084aa810f28.tar
UXP-1ca6039fb86cfab374fa0f4d37d9a084aa810f28.tar.gz
UXP-1ca6039fb86cfab374fa0f4d37d9a084aa810f28.tar.lz
UXP-1ca6039fb86cfab374fa0f4d37d9a084aa810f28.tar.xz
UXP-1ca6039fb86cfab374fa0f4d37d9a084aa810f28.zip
Issue #1587 - Part 3: Hook FetchSignal up to the Fetch API
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;
}