diff options
author | Moonchild <moonchild@palemoon.org> | 2022-04-03 00:56:05 +0200 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2022-04-03 00:56:05 +0200 |
commit | c08fc8c6bb23d2bda543ed402f75e7271c0a84fe (patch) | |
tree | a1e605516612072a3526c524e02e6e4f0b830783 | |
parent | c5fa5bd4c1c82edb572e50d77c66bacbc4ccbf1e (diff) | |
parent | 2a9d0cc5af3552a378778cb2aaf5317b5f8ddd14 (diff) | |
download | uxp-RELBASE_20210914-UXP.tar.gz |
Merge commit '2a9d0cc5af3552a378778cb2aaf5317b5f8ddd14' into releaseRELBASE_20210914-UXP
-rw-r--r-- | dom/ipc/ContentChild.cpp | 5 | ||||
-rw-r--r-- | modules/libpref/init/all.js | 1 | ||||
-rw-r--r-- | xpcom/reflect/xptcall/md/unix/xptcinvoke_arm.cpp | 2 | ||||
-rw-r--r-- | xpcom/threads/TimerThread.cpp | 2 |
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; |