diff --git a/assets/prefs.js b/assets/prefs.js index 4ae028b..c0b7340 100644 --- a/assets/prefs.js +++ b/assets/prefs.js @@ -5,6 +5,7 @@ lockPref("toolkit.legacyUserProfileCustomizations.stylesheets", true); lockPref("browser.uidensity", 1); lockPref("browser.startup.page", 3); lockPref("layout.css.system-ui.enabled", false); +lockPref("privacy.fingerprintingProtection", false); // Allow custom search engines pref("browser.urlbar.update2.engineAliasRefresh", true); // No clue why this needs both pref and lockPref but here we are diff --git a/patches/0009-userchrome.patch b/patches/0009-userchrome.patch index cb16712..5a614f2 100644 --- a/patches/0009-userchrome.patch +++ b/patches/0009-userchrome.patch @@ -23,33 +23,3 @@ index dac063c8a17fc..4bdd21bca9588 100644 } else if (!strcmp(aProperty, NS_APP_PREFS_50_DIR)) { rv = GetProfileDir(getter_AddRefs(file)); if (NS_FAILED(rv)) { -diff --git a/security/sandbox/linux/broker/SandboxBrokerPolicyFactory.cpp b/security/sandbox/linux/broker/SandboxBrokerPolicyFactory.cpp -index 0e5358e68e573..83bb97ae837d3 100644 ---- a/security/sandbox/linux/broker/SandboxBrokerPolicyFactory.cpp -+++ b/security/sandbox/linux/broker/SandboxBrokerPolicyFactory.cpp -@@ -696,6 +696,25 @@ void SandboxBrokerPolicyFactory::InitContentPolicy() { - - // userContent.css and the extensions dir sit in the profile, which is - // normally blocked. -+ -+ nsCOMPtr greDir; -+ bool persistent = false; -+ rv = GetFile(NS_GRE_DIR, &persistent, getter_AddRefs(greDir)); -+ if (NS_SUCCEEDED(rv)) { -+ nsCOMPtr workDir; -+ rv = greDir->Clone(getter_AddRefs(workDir)); -+ if (NS_SUCCEEDED(rv)) { -+ rv = workDir->AppendNative("distribution"_ns); -+ if (NS_SUCCEEDED(rv)) { -+ nsAutoCString tmpPath; -+ rv = workDir->GetNativePath(tmpPath); -+ if (NS_SUCCEEDED(rv)) { -+ policy->AddDir(rdonly, tmpPath.get()); -+ } -+ } -+ } -+ } -+ - nsCOMPtr profileDir; - rv = NS_GetSpecialDirectory(NS_APP_USER_PROFILE_50_DIR, - getter_AddRefs(profileDir)); diff --git a/rebuild.sh b/rebuild.sh new file mode 100755 index 0000000..1075405 --- /dev/null +++ b/rebuild.sh @@ -0,0 +1,7 @@ +#!/bin/bash +set -e + +cd ./mozilla-unified + +# Build the thing +./mach build