summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2021-09-09 17:32:54 +0000
committerMoonchild <moonchild@palemoon.org>2021-09-09 17:32:54 +0000
commit7b1e6e182da0b3fd6c4860d86f1d95523ad85a2e (patch)
treea1e605516612072a3526c524e02e6e4f0b830783
parent1b5b4f585860c496c1b345b752cceaede1b10e49 (diff)
parent6bde58554d7c4113c5f4ea72064d6864ac19f1af (diff)
downloaduxp-7b1e6e182da0b3fd6c4860d86f1d95523ad85a2e.tar.gz
Merge branch 'master' into releaseRELBASE_20210914
-rw-r--r--dom/ipc/ContentChild.cpp5
-rw-r--r--modules/libpref/init/all.js1
-rw-r--r--xpcom/reflect/xptcall/md/unix/xptcinvoke_arm.cpp2
-rw-r--r--xpcom/threads/TimerThread.cpp2
4 files changed, 5 insertions, 5 deletions
diff --git a/dom/ipc/ContentChild.cpp b/dom/ipc/ContentChild.cpp
index 046934277c..5ff77092ab 100644
--- a/dom/ipc/ContentChild.cpp
+++ b/dom/ipc/ContentChild.cpp
@@ -2817,10 +2817,10 @@ bool
ContentChild::RecvGetFilesResponse(const nsID& aUUID,
const GetFilesResponseResult& aResult)
{
- GetFilesHelperChild* child = mGetFilesPendingRequests.GetWeak(aUUID);
+ RefPtr<GetFilesHelperChild> child;
// This object can already been deleted in case DeleteGetFilesRequest has
// been called when the response was sending by the parent.
- if (!child) {
+ if (!mGetFilesPendingRequests.Remove(aUUID, getter_AddRefs(child))) {
return true;
}
@@ -2841,7 +2841,6 @@ ContentChild::RecvGetFilesResponse(const nsID& aUUID,
child->Finished(succeeded ? NS_OK : NS_ERROR_OUT_OF_MEMORY);
}
- mGetFilesPendingRequests.Remove(aUUID);
return true;
}
diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js
index b16e58d714..e29f4cb567 100644
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -1349,6 +1349,7 @@ pref("network.protocol-handler.external.vbscript", false);
pref("network.protocol-handler.external.javascript", false);
pref("network.protocol-handler.external.data", false);
pref("network.protocol-handler.external.ms-help", false);
+pref("network.protocol-handler.external.mk", false);
pref("network.protocol-handler.external.res", false);
pref("network.protocol-handler.external.shell", false);
pref("network.protocol-handler.external.vnd.ms.radio", false);
diff --git a/xpcom/reflect/xptcall/md/unix/xptcinvoke_arm.cpp b/xpcom/reflect/xptcall/md/unix/xptcinvoke_arm.cpp
index 6475132bcf..7c16d0146d 100644
--- a/xpcom/reflect/xptcall/md/unix/xptcinvoke_arm.cpp
+++ b/xpcom/reflect/xptcall/md/unix/xptcinvoke_arm.cpp
@@ -9,7 +9,7 @@
#include "mozilla/Compiler.h"
-#if !defined(__arm__) && !(defined(LINUX)
+#if !defined(__arm__) && !defined(LINUX)
#error "This code is for Linux ARM only. Check that it works on your system, too.\nBeware that this code is highly compiler dependent."
#endif
diff --git a/xpcom/threads/TimerThread.cpp b/xpcom/threads/TimerThread.cpp
index d92c2ef90b..db7c924623 100644
--- a/xpcom/threads/TimerThread.cpp
+++ b/xpcom/threads/TimerThread.cpp
@@ -170,6 +170,7 @@ public:
void operator delete(void* aPtr)
{
sAllocator->Free(aPtr);
+ sAllocatorUsers--;
DeleteAllocatorIfNeeded();
}
@@ -193,7 +194,6 @@ private:
{
MOZ_ASSERT(!sCanDeleteAllocator || sAllocatorUsers > 0,
"This will result in us attempting to deallocate the nsTimerEvent allocator twice");
- sAllocatorUsers--;
}
RefPtr<nsTimerImpl> mTimer;