tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 3f5c6b4f18d50e2f122d9c45db6ac3b408a313b0
parent a454ba58bb957727194f1c6edd6b6740e15665d2
Author: serge-sans-paille <sguelton@mozilla.com>
Date:   Wed,  8 Oct 2025 13:58:42 +0000

Bug 1991865 - Cleanup mozilla/fallible.h includes r=emilio,media-playback-reviewers,webrtc-reviewers,dom-storage-reviewers,dom-worker-reviewers,padenot,glandium,asuth

Differential Revision: https://phabricator.services.mozilla.com/D267364

Diffstat:
Mdom/base/nsJSUtils.cpp | 1-
Mdom/quota/test/gtest/TestCheckedUnsafePtr.cpp | 1-
Mdom/quota/test/gtest/TestEncryptedStream.cpp | 1-
Mdom/quota/test/gtest/TestQuotaCommon.cpp | 1-
Mdom/quota/test/gtest/TestUsageInfo.cpp | 1-
Mdom/url/URLSearchParams.cpp | 1-
Mgfx/2d/NativeFontResourceFreeType.cpp | 2++
Mimage/Downscaler.cpp | 1+
Mjs/xpconnect/loader/nsImportModule.h | 1+
Mmemory/mozalloc/mozalloc.h | 1-
Mmfbt/fallible.h | 5++++-
Mnetwerk/base/SimpleBuffer.cpp | 1+
Mparser/html/jArray.h | 1+
Mtoolkit/components/resistfingerprinting/nsRFPService.cpp | 1-
Mwidget/android/EventDispatcher.cpp | 1-
15 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/dom/base/nsJSUtils.cpp b/dom/base/nsJSUtils.cpp @@ -35,7 +35,6 @@ #include "mozilla/dom/BindingUtils.h" #include "mozilla/dom/Element.h" #include "mozilla/dom/ScriptSettings.h" -#include "mozilla/fallible.h" #include "nsContentUtils.h" #include "nsDebug.h" #include "nsGlobalWindowInner.h" diff --git a/dom/quota/test/gtest/TestCheckedUnsafePtr.cpp b/dom/quota/test/gtest/TestCheckedUnsafePtr.cpp @@ -8,7 +8,6 @@ #include "gtest/gtest.h" #include "mozilla/dom/quota/CheckedUnsafePtr.h" -#include "mozilla/fallible.h" using namespace mozilla; diff --git a/dom/quota/test/gtest/TestEncryptedStream.cpp b/dom/quota/test/gtest/TestEncryptedStream.cpp @@ -30,7 +30,6 @@ #include "mozilla/dom/quota/EncryptedBlock.h" #include "mozilla/dom/quota/EncryptingOutputStream_impl.h" #include "mozilla/dom/quota/NSSCipherStrategy.h" -#include "mozilla/fallible.h" #include "nsCOMPtr.h" #include "nsError.h" #include "nsICloneableInputStream.h" diff --git a/dom/quota/test/gtest/TestQuotaCommon.cpp b/dom/quota/test/gtest/TestQuotaCommon.cpp @@ -25,7 +25,6 @@ #include "mozilla/dom/quota/QuotaCommon.h" #include "mozilla/dom/quota/QuotaTestParent.h" #include "mozilla/dom/quota/ResultExtensions.h" -#include "mozilla/fallible.h" #include "nsCOMPtr.h" #include "nsDirectoryServiceDefs.h" #include "nsDirectoryServiceUtils.h" diff --git a/dom/quota/test/gtest/TestUsageInfo.cpp b/dom/quota/test/gtest/TestUsageInfo.cpp @@ -13,7 +13,6 @@ #include "mozilla/Maybe.h" #include "mozilla/dom/quota/QuotaCommon.h" #include "mozilla/dom/quota/UsageInfo.h" -#include "mozilla/fallible.h" using namespace mozilla; using namespace mozilla::dom::quota; diff --git a/dom/url/URLSearchParams.cpp b/dom/url/URLSearchParams.cpp @@ -25,7 +25,6 @@ #include "mozilla/dom/Record.h" #include "mozilla/dom/StructuredCloneHolder.h" #include "mozilla/dom/URLSearchParamsBinding.h" -#include "mozilla/fallible.h" #include "nsDOMString.h" #include "nsError.h" #include "nsIGlobalObject.h" diff --git a/gfx/2d/NativeFontResourceFreeType.cpp b/gfx/2d/NativeFontResourceFreeType.cpp @@ -7,6 +7,8 @@ #include "NativeFontResourceFreeType.h" #include "UnscaledFontFreeType.h" +#include "mozilla/fallible.h" + namespace mozilla::gfx { NativeFontResourceFreeType::NativeFontResourceFreeType( diff --git a/image/Downscaler.cpp b/image/Downscaler.cpp @@ -10,6 +10,7 @@ #include <ctime> #include "mozilla/gfx/2D.h" +#include "mozilla/fallible.h" using std::swap; diff --git a/js/xpconnect/loader/nsImportModule.h b/js/xpconnect/loader/nsImportModule.h @@ -9,6 +9,7 @@ #include "mozilla/Assertions.h" #include "mozilla/Attributes.h" +#include "mozilla/fallible.h" #include "nsCOMPtr.h" #include "mozilla/RefPtr.h" diff --git a/memory/mozalloc/mozalloc.h b/memory/mozalloc/mozalloc.h @@ -39,7 +39,6 @@ #endif #if defined(__cplusplus) -# include "mozilla/fallible.h" # include "mozilla/mozalloc_abort.h" # include "mozilla/CheckedArithmetic.h" # include "mozilla/Likely.h" diff --git a/mfbt/fallible.h b/mfbt/fallible.h @@ -9,10 +9,13 @@ /* Explicit fallible allocation * + * mozilla::fallible_t and mozilla::fallible_t provide aliases to + * std::nothrow_t and std::nothrow from the C++ standard header <new>. + * * Memory allocation (normally) defaults to abort in case of failed * allocation. That is, it never returns NULL, and crashes instead. * - * Code can explicitely request for fallible memory allocation thanks + * Code can explicitly request for fallible memory allocation thanks * to the declarations below. * * The typical use of the mozilla::fallible const is with placement new, diff --git a/netwerk/base/SimpleBuffer.cpp b/netwerk/base/SimpleBuffer.cpp @@ -5,6 +5,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "SimpleBuffer.h" +#include "mozilla/fallible.h" #include <algorithm> namespace mozilla { diff --git a/parser/html/jArray.h b/parser/html/jArray.h @@ -26,6 +26,7 @@ #include <array> #include "mozilla/Attributes.h" #include "mozilla/BinarySearch.h" +#include "mozilla/fallible.h" template <class T, class L> struct staticJArray { diff --git a/toolkit/components/resistfingerprinting/nsRFPService.cpp b/toolkit/components/resistfingerprinting/nsRFPService.cpp @@ -55,7 +55,6 @@ #include "mozilla/dom/WindowGlobalParent.h" #include "mozilla/dom/MediaDeviceInfoBinding.h" #include "mozilla/dom/quota/QuotaManager.h" -#include "mozilla/fallible.h" #include "mozilla/XorShift128PlusRNG.h" #include "mozilla/dom/CanvasUtils.h" diff --git a/widget/android/EventDispatcher.cpp b/widget/android/EventDispatcher.cpp @@ -15,7 +15,6 @@ #include "js/Warnings.h" // JS::WarnUTF8 #include "xpcpublic.h" -#include "mozilla/fallible.h" #include "mozilla/ScopeExit.h" #include "mozilla/dom/ScriptSettings.h" #include "mozilla/java/EventCallbackWrappers.h"