diff --git a/assets/base.mozconfig b/assets/base.mozconfig index 3bff450..4548526 100644 --- a/assets/base.mozconfig +++ b/assets/base.mozconfig @@ -2,6 +2,7 @@ ac_add_options --enable-application=browser ac_add_options --enable-jxl ac_add_options --enable-release +mk_add_options MOZ_MAKE_FLAGS="-j$(nproc)" export CC=clang export CXX=clang++ diff --git a/patches/chromeutil.patch b/patches/chromeutil.patch index 2be54f6..4a7a5ef 100644 --- a/patches/chromeutil.patch +++ b/patches/chromeutil.patch @@ -35,7 +35,7 @@ index 52f0af76ec..2a7a9ae4fc 100644 double ChromeUtils::DateNow(GlobalObject&) { return JS_Now() / 1000.0; } /* static */ -@@ -2141,6 +2161,77 @@ void ChromeUtils::GetAllPossibleUtilityActorNames(GlobalObject& aGlobal, +@@ -2141,6 +2161,66 @@ void ChromeUtils::GetAllPossibleUtilityActorNames(GlobalObject& aGlobal, } } @@ -98,18 +98,7 @@ index 52f0af76ec..2a7a9ae4fc 100644 + aRetVal.Clear(); +} + -+/* static */ -+void ChromeUtils::CamouGetMouseTrajectory(GlobalObject& aGlobal, long aFromX, -+ long aFromY, long aToX, long aToY, -+ nsTArray& aPoints) { -+ HumanizeMouseTrajectory trajectory(std::make_pair(aFromX, aFromY), -+ std::make_pair(aToX, aToY)); -+ std::vector flattenedPoints = trajectory.getPoints(); -+ -+ aPoints.Clear(); -+ aPoints.AppendElements(flattenedPoints.data(), flattenedPoints.size()); -+} -+ + /* static */ bool ChromeUtils::ShouldResistFingerprinting( GlobalObject& aGlobal, JSRFPTarget aTarget, @@ -128,7 +117,7 @@ index 138b9c3f80..c7c7ce74bf 100644 static double DateNow(GlobalObject&); static void EnsureJSOracleStarted(GlobalObject&); -@@ -314,6 +318,24 @@ class ChromeUtils { +@@ -314,6 +318,20 @@ class ChromeUtils { static void GetAllPossibleUtilityActorNames(GlobalObject& aGlobal, nsTArray& aNames); @@ -146,10 +135,7 @@ index 138b9c3f80..c7c7ce74bf 100644 + static void CamouGetStringList(GlobalObject& aGlobal, const nsAString& aVarName, + nsTArray& aRetVal); + -+ static void CamouGetMouseTrajectory(GlobalObject& aGlobal, long aFromX, -+ long aFromY, long aToX, long aToY, -+ nsTArray& aPoints); -+ + static bool ShouldResistFingerprinting( GlobalObject& aGlobal, JSRFPTarget aTarget, const Nullable& aOverriddenFingerprintingSettings); @@ -171,7 +157,7 @@ index 6a99703db1..82415eba19 100644 /** * Starts the JSOracle process for ORB JavaScript validation, if it hasn't started already. */ -@@ -761,6 +768,36 @@ partial namespace ChromeUtils { +@@ -761,6 +768,31 @@ partial namespace ChromeUtils { [ChromeOnly] readonly attribute unsigned long aliveUtilityProcesses; @@ -199,11 +185,6 @@ index 6a99703db1..82415eba19 100644 + * Get a list of strings from Omegafox MaskConfig. + */ + sequence camouGetStringList(DOMString varName); -+ -+ /** -+ * Calculate a human-like mouse trajectory between two points. -+ */ -+ sequence camouGetMouseTrajectory(long fromX, long fromY, long toX, long toY); + /** * Get a list of all possible Utility process Actor Names ; mostly useful to