tor-browser

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

commit 483b8505236bb03e3da03dc180a54c08ca85e3cd
parent 50221d104ce545ade64755030bcee5c5950ddb5e
Author: serge-sans-paille <sguelton@mozilla.com>
Date:   Fri, 24 Oct 2025 21:19:05 +0000

Bug 1996047 - Remove unused inclusion of Types.h r=emilio,necko-reviewers,media-playback-reviewers,webrtc-reviewers,win-reviewers,firefox-style-system-reviewers,gstoll,chunmin,pehrsons,jesup

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

Diffstat:
Mbrowser/app/winlauncher/DllBlocklistInit.cpp | 1-
Mbrowser/app/winlauncher/freestanding/LoaderPrivateAPI.cpp | 1-
Mdom/media/MediaManager.cpp | 1-
Mdom/media/mp4/DecoderData.h | 1-
Mdom/media/platforms/agnostic/bytestreams/gtest/TestByteStreams.cpp | 1-
Mdom/media/platforms/ffmpeg/FFmpegLibWrapper.cpp | 1-
Mdom/media/platforms/ffmpeg/FFmpegLibWrapper.h | 1-
Mdom/media/platforms/ffmpeg/VALibWrapper.h | 1-
Mdom/storage/StorageCommon.h | 2--
Mgfx/2d/BufferUnrotate.h | 2+-
Mgfx/2d/SourceSurfaceRawData.cpp | 1-
Mgfx/layers/AnimationHelper.h | 1-
Mgfx/layers/SourceSurfaceSharedData.cpp | 1-
Mhal/WindowIdentifier.h | 1-
Mjs/src/irregexp/RegExpShim.h | 1-
Mjs/src/jit/AtomicOperations.h | 2--
Mjs/src/jit/arm/disasm/Constants-arm.h | 1-
Mjs/src/jit/arm/disasm/Disasm-arm.h | 1-
Mjs/src/jit/mips-shared/AtomicOperations-mips-shared.h | 1-
Mjs/src/jit/riscv64/constant/Base-constant-riscv.cpp | 1-
Mjs/src/jit/riscv64/constant/Base-constant-riscv.h | 1-
Mjs/src/jit/riscv64/constant/Constant-riscv64.h | 1-
Mjs/src/jit/riscv64/disasm/Disasm-riscv64.h | 1-
Mjs/src/jit/shared/AtomicOperations-feeling-lucky-gcc.h | 1-
Mlayout/style/CounterStyleManager.cpp | 1-
Mlayout/style/nsChangeHint.h | 1-
Mmedia/mozva/mozva.c | 1-
Mmemory/replace/dmd/DMD.h | 1-
Mmfbt/HashFunctions.cpp | 1-
Mmozglue/misc/WindowsStackCookie.h | 2--
Mmozglue/static/Compression.h | 1-
Mnetwerk/cache2/CacheHashUtils.h | 1-
Msecurity/sandbox/linux/SandboxChrootProto.h | 2--
Msecurity/sandbox/linux/reporter/SandboxReporter.h | 1-
Msecurity/sandbox/linux/reporter/SandboxReporterCommon.h | 1-
Mthird_party/drm/libdrm/mozdrm.cpp | 1-
Mthird_party/gbm/libgbm/mozgbm.cpp | 1-
Mthird_party/pipewire/libpipewire/mozpipewire.cpp | 1-
Mtoolkit/components/ml/backends/llama/LlamaRuntimeLinker.h | 1-
Mtoolkit/xre/dllservices/mozglue/interceptor/MMPolicies.h | 1-
Mtoolkit/xre/dllservices/mozglue/interceptor/PatcherDetour.h | 1-
Mtoolkit/xre/dllservices/mozglue/interceptor/TargetFunction.h | 1-
Mtoolkit/xre/dllservices/mozglue/interceptor/Trampoline.h | 1-
Mtoolkit/xre/dllservices/mozglue/interceptor/VMSharingPolicies.h | 1-
Mtoolkit/xre/dllservices/mozglue/nsWindowsDllInterceptor.h | 1-
Mtoolkit/xre/glxtest/glxtest.cpp | 1-
Mwidget/gtk/nsApplicationChooser.cpp | 2--
Mwidget/gtk/nsFilePicker.cpp | 1-
48 files changed, 1 insertion(+), 53 deletions(-)

diff --git a/browser/app/winlauncher/DllBlocklistInit.cpp b/browser/app/winlauncher/DllBlocklistInit.cpp @@ -9,7 +9,6 @@ #include "mozilla/NativeNt.h" #include "mozilla/PolicyChecks.h" #include "mozilla/ScopeExit.h" -#include "mozilla/Types.h" #include "mozilla/WindowsDllBlocklist.h" #include "mozilla/WindowsStackCookie.h" #include "mozilla/WinHeaderOnlyUtils.h" diff --git a/browser/app/winlauncher/freestanding/LoaderPrivateAPI.cpp b/browser/app/winlauncher/freestanding/LoaderPrivateAPI.cpp @@ -7,7 +7,6 @@ #include "LoaderPrivateAPI.h" #include "mozilla/Assertions.h" -#include "mozilla/Types.h" #include "../DllBlocklistInit.h" #include "../ErrorHandler.h" #include "SharedSection.h" diff --git a/dom/media/MediaManager.cpp b/dom/media/MediaManager.cpp @@ -26,7 +26,6 @@ #include "mozilla/PermissionDelegateHandler.h" #include "mozilla/Sprintf.h" #include "mozilla/StaticPrefs_media.h" -#include "mozilla/Types.h" #include "mozilla/dom/BindingDeclarations.h" #include "mozilla/dom/Document.h" #include "mozilla/dom/Element.h" diff --git a/dom/media/mp4/DecoderData.h b/dom/media/mp4/DecoderData.h @@ -9,7 +9,6 @@ #include "MediaResult.h" #include "mozilla/RefPtr.h" #include "mozilla/Result.h" -#include "mozilla/Types.h" #include "mozilla/Vector.h" #include "mp4parse.h" #include "nsString.h" diff --git a/dom/media/platforms/agnostic/bytestreams/gtest/TestByteStreams.cpp b/dom/media/platforms/agnostic/bytestreams/gtest/TestByteStreams.cpp @@ -10,7 +10,6 @@ #include "H264.h" #include "H265.h" #include "gtest/gtest.h" -#include "mozilla/Types.h" namespace mozilla { diff --git a/dom/media/platforms/ffmpeg/FFmpegLibWrapper.cpp b/dom/media/platforms/ffmpeg/FFmpegLibWrapper.cpp @@ -10,7 +10,6 @@ # include "mozilla/StaticPrefs_media.h" #endif #include "PlatformDecoderModule.h" -#include "mozilla/Types.h" #include "prlink.h" #ifdef MOZ_WIDGET_GTK # include "VALibWrapper.h" diff --git a/dom/media/platforms/ffmpeg/FFmpegLibWrapper.h b/dom/media/platforms/ffmpeg/FFmpegLibWrapper.h @@ -9,7 +9,6 @@ #include "mozilla/Attributes.h" #include "mozilla/DefineEnum.h" #include "mozilla/Preferences.h" -#include "mozilla/Types.h" struct AVCodec; struct AVCodecContext; diff --git a/dom/media/platforms/ffmpeg/VALibWrapper.h b/dom/media/platforms/ffmpeg/VALibWrapper.h @@ -6,7 +6,6 @@ #define DOM_MEDIA_PLATFORMS_FFMPEG_VALIBWRAPPER_H_ #include "mozilla/Attributes.h" -#include "mozilla/Types.h" #include "mozilla/UniquePtrExtensions.h" #include "nsISupportsImpl.h" diff --git a/dom/storage/StorageCommon.h b/dom/storage/StorageCommon.h @@ -7,8 +7,6 @@ #ifndef DOM_STORAGE_STORAGECOMMON_H_ #define DOM_STORAGE_STORAGECOMMON_H_ -#include "mozilla/Types.h" - namespace mozilla::dom { constexpr uint32_t kPrivateBrowsingIdCount = 2; diff --git a/gfx/2d/BufferUnrotate.h b/gfx/2d/BufferUnrotate.h @@ -7,7 +7,7 @@ #ifndef MOZILLA_GFX_BUFFER_UNROTATE_H #define MOZILLA_GFX_BUFFER_UNROTATE_H -#include "mozilla/Types.h" +#include <cstdint> namespace mozilla { namespace gfx { diff --git a/gfx/2d/SourceSurfaceRawData.cpp b/gfx/2d/SourceSurfaceRawData.cpp @@ -8,7 +8,6 @@ #include "DataSurfaceHelpers.h" #include "Logging.h" -#include "mozilla/Types.h" // for decltype #include "nsIMemoryReporter.h" namespace mozilla { diff --git a/gfx/layers/AnimationHelper.h b/gfx/layers/AnimationHelper.h @@ -13,7 +13,6 @@ #include "mozilla/webrender/WebRenderTypes.h" // for RenderRoot #include "mozilla/TimeStamp.h" // for TimeStamp #include "mozilla/TimingParams.h" -#include "mozilla/Types.h" // for SideBits #include "X11UndefineNone.h" #include <unordered_map> diff --git a/gfx/layers/SourceSurfaceSharedData.cpp b/gfx/layers/SourceSurfaceSharedData.cpp @@ -8,7 +8,6 @@ #include "mozilla/Likely.h" #include "mozilla/StaticPrefs_image.h" -#include "mozilla/Types.h" // for decltype #include "mozilla/ipc/SharedMemoryMapping.h" #include "mozilla/layers/SharedSurfacesChild.h" #include "mozilla/layers/SharedSurfacesParent.h" diff --git a/hal/WindowIdentifier.h b/hal/WindowIdentifier.h @@ -7,7 +7,6 @@ #ifndef mozilla_hal_WindowIdentifier_h #define mozilla_hal_WindowIdentifier_h -#include "mozilla/Types.h" #include "nsCOMPtr.h" #include "nsTArray.h" diff --git a/js/src/irregexp/RegExpShim.h b/js/src/irregexp/RegExpShim.h @@ -17,7 +17,6 @@ #include "mozilla/Maybe.h" #include "mozilla/SegmentedVector.h" #include "mozilla/Sprintf.h" -#include "mozilla/Types.h" #include <algorithm> #include <cctype> diff --git a/js/src/jit/AtomicOperations.h b/js/src/jit/AtomicOperations.h @@ -7,8 +7,6 @@ #ifndef jit_AtomicOperations_h #define jit_AtomicOperations_h -#include "mozilla/Types.h" - #include <string.h> #include "jit/AtomicOperationsGenerated.h" diff --git a/js/src/jit/arm/disasm/Constants-arm.h b/js/src/jit/arm/disasm/Constants-arm.h @@ -11,7 +11,6 @@ #ifdef JS_DISASM_ARM # include "mozilla/Assertions.h" -# include "mozilla/Types.h" # include <string.h> diff --git a/js/src/jit/arm/disasm/Disasm-arm.h b/js/src/jit/arm/disasm/Disasm-arm.h @@ -11,7 +11,6 @@ #ifdef JS_DISASM_ARM # include "mozilla/Assertions.h" -# include "mozilla/Types.h" # include <stdio.h> diff --git a/js/src/jit/mips-shared/AtomicOperations-mips-shared.h b/js/src/jit/mips-shared/AtomicOperations-mips-shared.h @@ -10,7 +10,6 @@ #define jit_mips_shared_AtomicOperations_mips_shared_h #include "mozilla/Assertions.h" -#include "mozilla/Types.h" #include "builtin/AtomicsObject.h" #include "vm/Uint8Clamped.h" diff --git a/js/src/jit/riscv64/constant/Base-constant-riscv.cpp b/js/src/jit/riscv64/constant/Base-constant-riscv.cpp @@ -4,7 +4,6 @@ #include "jit/riscv64/constant/Base-constant-riscv.h" #include "mozilla/Assertions.h" -#include "mozilla/Types.h" #include <stdio.h> diff --git a/js/src/jit/riscv64/constant/Base-constant-riscv.h b/js/src/jit/riscv64/constant/Base-constant-riscv.h @@ -5,7 +5,6 @@ #define jit_riscv64_constant_Base_constant_riscv__h_ #include "mozilla/Assertions.h" -#include "mozilla/Types.h" namespace js { namespace jit { diff --git a/js/src/jit/riscv64/constant/Constant-riscv64.h b/js/src/jit/riscv64/constant/Constant-riscv64.h @@ -7,7 +7,6 @@ #ifndef jit_riscv64_constant_Constant_riscv64_h #define jit_riscv64_constant_Constant_riscv64_h #include "mozilla/Assertions.h" -#include "mozilla/Types.h" #include <stdio.h> diff --git a/js/src/jit/riscv64/disasm/Disasm-riscv64.h b/js/src/jit/riscv64/disasm/Disasm-riscv64.h @@ -9,7 +9,6 @@ #define jit_riscv64_disasm_Disasm_riscv64_h #include "mozilla/Assertions.h" -#include "mozilla/Types.h" #include <stdio.h> diff --git a/js/src/jit/shared/AtomicOperations-feeling-lucky-gcc.h b/js/src/jit/shared/AtomicOperations-feeling-lucky-gcc.h @@ -26,7 +26,6 @@ #define jit_shared_AtomicOperations_feeling_lucky_gcc_h #include "mozilla/Assertions.h" -#include "mozilla/Types.h" // Explicitly exclude tier-1 platforms. diff --git a/layout/style/CounterStyleManager.cpp b/layout/style/CounterStyleManager.cpp @@ -15,7 +15,6 @@ #include "mozilla/PresShell.h" #include "mozilla/ServoBindings.h" #include "mozilla/ServoStyleSet.h" -#include "mozilla/Types.h" #include "mozilla/WritingModes.h" #include "nsPresContext.h" #include "nsPresContextInlines.h" diff --git a/layout/style/nsChangeHint.h b/layout/style/nsChangeHint.h @@ -10,7 +10,6 @@ #define nsChangeHint_h___ #include "mozilla/Assertions.h" -#include "mozilla/Types.h" // Defines for various style related constants diff --git a/media/mozva/mozva.c b/media/mozva/mozva.c @@ -9,7 +9,6 @@ #include <va/va.h> #pragma GCC visibility pop -#include "mozilla/Types.h" #include <dlfcn.h> #include <pthread.h> #include <stdlib.h> diff --git a/memory/replace/dmd/DMD.h b/memory/replace/dmd/DMD.h @@ -13,7 +13,6 @@ #include <utility> #include "mozilla/DebugOnly.h" -#include "mozilla/Types.h" #include "mozilla/UniquePtr.h" #include "replace_malloc_bridge.h" diff --git a/mfbt/HashFunctions.cpp b/mfbt/HashFunctions.cpp @@ -7,7 +7,6 @@ /* Implementations of hash functions. */ #include "mozilla/HashFunctions.h" -#include "mozilla/Types.h" #include <string.h> diff --git a/mozglue/misc/WindowsStackCookie.h b/mozglue/misc/WindowsStackCookie.h @@ -14,8 +14,6 @@ # include <cstdint> -# include "mozilla/Types.h" - namespace mozilla { // This function does pattern matching on the instructions generated for a diff --git a/mozglue/static/Compression.h b/mozglue/static/Compression.h @@ -10,7 +10,6 @@ #define mozilla_Compression_h_ #include "mozilla/Assertions.h" -#include "mozilla/Types.h" #include "mozilla/ResultVariant.h" #include "mozilla/Span.h" diff --git a/netwerk/cache2/CacheHashUtils.h b/netwerk/cache2/CacheHashUtils.h @@ -6,7 +6,6 @@ #define CacheHashUtils__h__ #include "nsISupports.h" -#include "mozilla/Types.h" #include "prnetdb.h" #include "nsPrintfCString.h" diff --git a/security/sandbox/linux/SandboxChrootProto.h b/security/sandbox/linux/SandboxChrootProto.h @@ -7,8 +7,6 @@ #ifndef mozilla_SandboxChrootProto_h #define mozilla_SandboxChrootProto_h -#include "mozilla/Types.h" - namespace mozilla { static const char kSandboxChrootRequest = 'C'; diff --git a/security/sandbox/linux/reporter/SandboxReporter.h b/security/sandbox/linux/reporter/SandboxReporter.h @@ -12,7 +12,6 @@ #include "base/platform_thread.h" #include "mozilla/StaticPtr.h" #include "mozilla/Mutex.h" -#include "mozilla/Types.h" #include "mozilla/UniquePtr.h" #include "nsTArray.h" diff --git a/security/sandbox/linux/reporter/SandboxReporterCommon.h b/security/sandbox/linux/reporter/SandboxReporterCommon.h @@ -8,7 +8,6 @@ #define mozilla_SandboxReporterCommon_h #include "mozilla/IntegerTypeTraits.h" -#include "mozilla/Types.h" #include <sys/types.h> diff --git a/third_party/drm/libdrm/mozdrm.cpp b/third_party/drm/libdrm/mozdrm.cpp @@ -5,7 +5,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#include "mozilla/Types.h" #include "prlink.h" #include <xf86drm.h> diff --git a/third_party/gbm/libgbm/mozgbm.cpp b/third_party/gbm/libgbm/mozgbm.cpp @@ -5,7 +5,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#include "mozilla/Types.h" #include "prlink.h" #include <gbm.h> diff --git a/third_party/pipewire/libpipewire/mozpipewire.cpp b/third_party/pipewire/libpipewire/mozpipewire.cpp @@ -5,7 +5,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#include "mozilla/Types.h" #include "prlink.h" #include <pipewire/pipewire.h> diff --git a/toolkit/components/ml/backends/llama/LlamaRuntimeLinker.h b/toolkit/components/ml/backends/llama/LlamaRuntimeLinker.h @@ -8,7 +8,6 @@ #define LlamaRuntimeLinker_h__ #include "mozilla/Attributes.h" -#include "mozilla/Types.h" #include "llama/llama.h" #include "ggml.h" diff --git a/toolkit/xre/dllservices/mozglue/interceptor/MMPolicies.h b/toolkit/xre/dllservices/mozglue/interceptor/MMPolicies.h @@ -14,7 +14,6 @@ #include "mozilla/Maybe.h" #include "mozilla/Span.h" #include "mozilla/TypedEnumBits.h" -#include "mozilla/Types.h" #include "mozilla/WindowsMapRemoteView.h" #include "mozilla/WindowsUnwindInfo.h" diff --git a/toolkit/xre/dllservices/mozglue/interceptor/PatcherDetour.h b/toolkit/xre/dllservices/mozglue/interceptor/PatcherDetour.h @@ -16,7 +16,6 @@ #include "mozilla/NativeNt.h" #include "mozilla/ScopeExit.h" #include "mozilla/TypedEnumBits.h" -#include "mozilla/Types.h" #include "mozilla/interceptor/PatcherBase.h" #include "mozilla/interceptor/Trampoline.h" #include "mozilla/interceptor/VMSharingPolicies.h" diff --git a/toolkit/xre/dllservices/mozglue/interceptor/TargetFunction.h b/toolkit/xre/dllservices/mozglue/interceptor/TargetFunction.h @@ -13,7 +13,6 @@ #include "mozilla/CheckedInt.h" #include "mozilla/Maybe.h" -#include "mozilla/Types.h" #include "mozilla/Vector.h" #include <memory> diff --git a/toolkit/xre/dllservices/mozglue/interceptor/Trampoline.h b/toolkit/xre/dllservices/mozglue/interceptor/Trampoline.h @@ -11,7 +11,6 @@ #include "mozilla/Attributes.h" #include "mozilla/CheckedInt.h" #include "mozilla/Maybe.h" -#include "mozilla/Types.h" #include "mozilla/WindowsProcessMitigations.h" #include "mozilla/WindowsUnwindInfo.h" diff --git a/toolkit/xre/dllservices/mozglue/interceptor/VMSharingPolicies.h b/toolkit/xre/dllservices/mozglue/interceptor/VMSharingPolicies.h @@ -10,7 +10,6 @@ #include "mozilla/Assertions.h" #include "mozilla/Attributes.h" #include "mozilla/Maybe.h" -#include "mozilla/Types.h" namespace mozilla { namespace interceptor { diff --git a/toolkit/xre/dllservices/mozglue/nsWindowsDllInterceptor.h b/toolkit/xre/dllservices/mozglue/nsWindowsDllInterceptor.h @@ -19,7 +19,6 @@ #include "mozilla/DebugOnly.h" #include "mozilla/NativeNt.h" -#include "mozilla/Types.h" #include "mozilla/Vector.h" #include "mozilla/interceptor/MMPolicies.h" #include "mozilla/interceptor/PatcherDetour.h" diff --git a/toolkit/xre/glxtest/glxtest.cpp b/toolkit/xre/glxtest/glxtest.cpp @@ -48,7 +48,6 @@ #include <vector> #include <sys/wait.h> #include "mozilla/ScopeExit.h" -#include "mozilla/Types.h" #include "mozilla/GfxInfoUtils.h" diff --git a/widget/gtk/nsApplicationChooser.cpp b/widget/gtk/nsApplicationChooser.cpp @@ -3,8 +3,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#include "mozilla/Types.h" - #include <gtk/gtk.h> #include "nsApplicationChooser.h" diff --git a/widget/gtk/nsFilePicker.cpp b/widget/gtk/nsFilePicker.cpp @@ -9,7 +9,6 @@ #include <sys/stat.h> #include <unistd.h> -#include "mozilla/Types.h" #include "AsyncDBus.h" #include "nsGtkUtils.h" #include "nsIFileURL.h"