mirror of
https://github.com/daijro/camoufox.git
synced 2026-09-09 08:01:15 +00:00
Major fixes accomplished: - Fixed ALL 10 malformed patch errors (blank context lines and hunk counts) - Removed Git version trailers from 2 patches causing parse errors - Fixed BrowsingContext.h by adding HasOrientationOverride field for Firefox 146 - Updated Navigator.cpp Webdriver function line number (2318 → 2363) - Fixed Navigator.cpp include order to match Firefox 146 structure - Applied comprehensive blank line and hunk count fixes to 18 patch files Results: - Reduced reject files from 33 → 13 (60% reduction) - Reduced failing hunks from 56 → 24 (57% reduction) - 0 malformed errors (was 10) - Build completes successfully with 'make dir' Remaining work: - 24 failing hunks across 13 files (mostly line number adjustments) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
76 lines
2.4 KiB
Diff
76 lines
2.4 KiB
Diff
diff --git a/dom/media/CubebUtils.cpp b/dom/media/CubebUtils.cpp
|
|
index 1b52782a48..7219b68d88 100644
|
|
--- a/dom/media/CubebUtils.cpp
|
|
+++ b/dom/media/CubebUtils.cpp
|
|
@@ -40,6 +40,7 @@
|
|
#include <thread>
|
|
#include "CallbackThreadRegistry.h"
|
|
#include "mozilla/StaticPrefs_media.h"
|
|
+#include "MaskConfig.hpp"
|
|
|
|
#define AUDIOIPC_STACK_SIZE_DEFAULT (64 * 4096)
|
|
|
|
@@ -399,6 +400,8 @@ uint32_t PreferredSampleRate(bool aShouldResistFingerprinting) {
|
|
if (sCubebForcedSampleRate) {
|
|
return sCubebForcedSampleRate;
|
|
}
|
|
+ if (auto value = MaskConfig::GetUint32("AudioContext:sampleRate"))
|
|
+ return value.value();
|
|
if (aShouldResistFingerprinting) {
|
|
return 44100;
|
|
}
|
|
diff --git a/dom/media/moz.build b/dom/media/moz.build
|
|
index 21063575d7..9e7c9f3e84 100644
|
|
--- a/dom/media/moz.build
|
|
+++ b/dom/media/moz.build
|
|
@@ -418,5 +418,7 @@
|
|
CXXFLAGS += ["-Werror=switch"]
|
|
|
|
FINAL_LIBRARY = "xul"
|
|
+# DOM Mask
|
|
+LOCAL_INCLUDES += ["/camoucfg"]
|
|
|
|
SPHINX_TREES["/media"] = "docs"
|
|
diff --git a/dom/media/webaudio/AudioContext.cpp b/dom/media/webaudio/AudioContext.cpp
|
|
index 66184b683b..daf30882ea 100644
|
|
--- a/dom/media/webaudio/AudioContext.cpp
|
|
+++ b/dom/media/webaudio/AudioContext.cpp
|
|
@@ -45,6 +45,7 @@
|
|
#include "mozilla/dom/WaveShaperNodeBinding.h"
|
|
#include "mozilla/dom/Worklet.h"
|
|
|
|
+#include "MaskConfig.hpp"
|
|
#include "AudioBuffer.h"
|
|
#include "AudioBufferSourceNode.h"
|
|
#include "AudioChannelService.h"
|
|
@@ -561,6 +562,8 @@ double AudioContext::OutputLatency() {
|
|
}
|
|
// When reduceFingerprinting is enabled, return a latency figure that is
|
|
// fixed, but plausible for the platform.
|
|
+ if (auto value = MaskConfig::GetDouble("AudioContext:outputLatency"))
|
|
+ return value.value();
|
|
double latency_s = 0.0;
|
|
if (mShouldResistFingerprinting) {
|
|
#ifdef XP_MACOSX
|
|
@@ -714,6 +717,8 @@ void AudioContext::UnregisterActiveNode(AudioNode* aNode) {
|
|
}
|
|
|
|
uint32_t AudioContext::MaxChannelCount() const {
|
|
+ if (auto value = MaskConfig::GetUint32("AudioContext:maxChannelCount"))
|
|
+ return value.value();
|
|
if (mShouldResistFingerprinting) {
|
|
return 2;
|
|
}
|
|
diff --git a/dom/media/webaudio/moz.build b/dom/media/webaudio/moz.build
|
|
index 3ee8c0aa76..c0f1df8cf6 100644
|
|
--- a/dom/media/webaudio/moz.build
|
|
+++ b/dom/media/webaudio/moz.build
|
|
@@ -149,3 +149,6 @@ include("/ipc/chromium/chromium-config.mozbuild")
|
|
|
|
FINAL_LIBRARY = "xul"
|
|
LOCAL_INCLUDES += [".."]
|
|
+
|
|
+# DOM Mask
|
|
+LOCAL_INCLUDES += ["/camoucfg"]
|
|
\ No newline at end of file
|