Blob Blame History Raw
diff -Nrup mozilla-OLD/comm/suite/app/moz.build mozilla/comm/suite/app/moz.build
--- mozilla-OLD/comm/suite/app/moz.build	2021-08-08 16:29:32.000000000 +0300
+++ mozilla/comm/suite/app/moz.build	2022-02-13 19:13:29.467156706 +0300
@@ -93,3 +93,5 @@ JS_PREFERENCE_PP_FILES += [
 
 FINAL_TARGET_FILES += ['blocklist.xml']
 FINAL_TARGET_FILES.defaults += ['permissions']
+
+FINAL_TARGET_PP_FILES += ['ua-update.json.in']
diff -Nrup mozilla-OLD/comm/suite/app/profile/suite-prefs.js mozilla/comm/suite/app/profile/suite-prefs.js
--- mozilla-OLD/comm/suite/app/profile/suite-prefs.js	2022-01-25 01:04:58.000000000 +0300
+++ mozilla/comm/suite/app/profile/suite-prefs.js	2022-02-13 19:24:32.841776020 +0300
@@ -44,6 +44,11 @@ pref("general.useragent.compatMode.firef
 // See bug 1242294 for how to make this work.
 pref("general.useragent.compatMode.strict-firefox", false);
 
+pref("general.useragent.updates.enabled", true);
+pref("general.useragent.updates.url", "");
+pref("general.useragent.updates.interval", 604800); // 1 week
+pref("general.useragent.updates.retry", 86400); // 1 day
+
 // 0 = blank, 1 = home (browser.startup.homepage), 2 = last visited page, 3 = resume previous browser session
 pref("browser.startup.page", 1);
 pref("browser.startup.homepage", "chrome://navigator-region/locale/region.properties");
diff -Nrup mozilla-OLD/comm/suite/app/ua-update.json.in mozilla/comm/suite/app/ua-update.json.in
--- mozilla-OLD/comm/suite/app/ua-update.json.in	1970-01-01 03:00:00.000000000 +0300
+++ mozilla/comm/suite/app/ua-update.json.in	2022-02-13 20:00:41.558572877 +0300
@@ -0,0 +1,28 @@
+#ifdef XP_UNIX
+#ifndef XP_MACOSX
+#define OS_SLICE X11; Linux x86_64;
+#else
+#define OS_SLICE Macintosh; Intel Mac OS X 10.13;
+#endif
+#else
+#define OS_SLICE Windows NT 10.0; Win64;
+#endif
+
+#filter substitution
+#filter slashslash
+// Everything after the first // on a line will be removed by the preproccesor.
+// Send these sites a custom user-agent. Bugs should be included with an entry.
+// Format:
+// "example.org": "regex_string#new_string"
+// "#" hash sign is the separator. If no hash sign, the full string is used as replacement.
+// NOTE: trailing commas are not valid JSON and will prevent the CDN from syncing.
+//
+// Since the stuff here looks volatile enough, it's better to distribute it
+// as a separate file (somewhere else), rather than to place deep inside the source code.
+// So, just some basic configuration for SeaMonkey here (useful for all the times) --
+// ie. idenify as SeaMonkey only for these three specific sites (addons, accounts etc).
+{
+  "thunderbird.net": "Firefox/.*#SeaMonkey/@APP_VERSION@",
+  "firefox.com": "Firefox/.*#SeaMonkey/@APP_VERSION@",
+  "seamonkey-project.org": "Firefox/.*#SeaMonkey/@APP_VERSION@",
+}
diff -Nrup mozilla-OLD/comm/suite/installer/package-manifest.in mozilla/comm/suite/installer/package-manifest.in
--- mozilla-OLD/comm/suite/installer/package-manifest.in	2022-01-25 01:04:58.000000000 +0300
+++ mozilla/comm/suite/installer/package-manifest.in	2022-02-13 19:16:38.812904477 +0300
@@ -136,6 +136,7 @@
 #endif
 @RESPATH@/license.txt
 @RESPATH@/blocklist.xml
+@BINPATH@/ua-update.json
 #ifdef UNIX_BUT_NOT_MAC
 @RESPATH@/run-mozilla.sh
 #endif