morgan pushed to branch mullvad-browser-128.9.0esr-14.5-1 at The Tor Project / Applications / Mullvad Browser
Commits:
fa229912 by Pier Angelo Vendrame at 2025-04-14T21:35:59+02:00
fixup! MB 38: Mullvad Browser configuration
TB 43653: Remove the unused spoofOsInUserAgentHeader pref.
- - - - -
1 changed file:
- browser/app/profile/000-mullvad-browser.js
Changes:
=====================================
browser/app/profile/000-mullvad-browser.js
=====================================
@@ -26,9 +26,6 @@ pref("browser.shell.checkDefaultBrowser", false);
// mullvad-browser#228: default to spoof en-US and skip showing the dialog
pref("privacy.spoof_english", 2);
-// mullvad-browser#234: Do not spoof the OS in the User-Agent header
-pref("privacy.resistFingerprinting.spoofOsInUserAgentHeader", false);
-
// mullvad-browser#222: Hide "List all tabs" when the tabs don't overflow
pref("browser.tabs.tabmanager.enabled", false);
View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/fa2…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/fa2…
You're receiving this email because of your account on gitlab.torproject.org.
morgan pushed to branch tor-browser-128.9.0esr-14.5-1 at The Tor Project / Applications / Tor Browser
Commits:
2780d106 by Pier Angelo Vendrame at 2025-04-14T21:25:26+02:00
fixup! TB 7494: Create local home page for TBB.
TB 43647: Dynamically update the survey language.
We observe the lang attribute of the document element (which normally
is set by Fluent) and we update the survey language whenever it
changes.
- - - - -
1 changed file:
- browser/components/abouttor/content/aboutTor.js
Changes:
=====================================
browser/components/abouttor/content/aboutTor.js
=====================================
@@ -182,6 +182,21 @@ const SurveyArea = {
*/
_version: 1,
+ /**
+ * The latest version of the survey the user has dismissed.
+ * If higher or equal than _version, the survey will not be displayed.
+ *
+ * @type {integer}
+ */
+ _dismissVersion: 0,
+
+ /**
+ * The surveys will be shown only in the stable channel of Tor Browser.
+ *
+ * @type {boolean}
+ */
+ _isStable: false,
+
/**
* The date to start showing the survey.
*
@@ -293,6 +308,13 @@ const SurveyArea = {
},
],
+ /**
+ * The observer to update the localized content whenever the language changes.
+ *
+ * @type {MutationObserver}
+ */
+ _langObserver: null,
+
/**
* Initialize the survey area.
*/
@@ -311,6 +333,17 @@ const SurveyArea = {
document.getElementById("survey-dismiss").addEventListener("click", () => {
this._hide();
});
+ this._langObserver = new MutationObserver(mutationList => {
+ for (const mutation of mutationList) {
+ if (
+ mutation.type === "attributes" &&
+ mutation.attributeName === "lang"
+ ) {
+ this.potentiallyShow();
+ }
+ }
+ });
+ this._langObserver.observe(document.documentElement, { attributes: true });
},
/**
@@ -333,23 +366,33 @@ const SurveyArea = {
},
/**
- * Decide whether to show the survey.
+ * Set the data for the survey.
*
* @param {integer} dismissVersion - The latest version of survey that the
* user has already dismissed.
* @param {boolean} isStable - Whether this is the stable release of Tor
* Browser.
*/
- potentiallyShow(dismissVersion, isStable) {
+ setData(dismissVersion, isStable) {
+ this._isStable = isStable;
+ this._dismissVersion = dismissVersion;
+ this.potentiallyShow();
+ },
+
+ /**
+ * Decide whether to show or update the survey.
+ */
+ potentiallyShow() {
const now = Date.now();
if (
now < this._startDate ||
now >= this._endDate ||
// The user has already dismissed this version of the survey before:
- dismissVersion >= this._version ||
- !isStable
+ this._dismissVersion >= this._version ||
+ !this._isStable
) {
// Don't show the survey.
+ document.body.classList.remove("show-survey");
return;
}
@@ -358,6 +401,7 @@ const SurveyArea = {
// Instead we only translate the banner into a limited set of locales that
// match the languages that the survey itself supports. This should match
// the language of the survey when it is opened by the user.
+ this._localeData = this._localeDataSet[0];
const pageLocale = document.documentElement.getAttribute("lang");
for (const localeData of this._localeDataSet) {
if (localeData.browserLocales.includes(pageLocale)) {
@@ -365,10 +409,6 @@ const SurveyArea = {
break;
}
}
- if (!this._localeData) {
- // Show the default en-US banner.
- this._localeData = this._localeDataSet[0];
- }
// Make sure the survey's lang and dir attributes match the chosen locale.
const surveyEl = document.getElementById("survey");
@@ -403,5 +443,5 @@ window.addEventListener("InitialData", event => {
} = event.detail;
SearchWidget.setOnionizeState(!!searchOnionize);
MessageArea.setMessageData(messageData, !!isStable, !!torConnectEnabled);
- SurveyArea.potentiallyShow(surveyDismissVersion, isStable);
+ SurveyArea.setData(surveyDismissVersion, isStable);
});
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/2780d10…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/2780d10…
You're receiving this email because of your account on gitlab.torproject.org.
morgan pushed to branch tor-browser-128.9.0esr-14.5-1 at The Tor Project / Applications / Tor Browser
Commits:
98bf7748 by Pier Angelo Vendrame at 2025-04-14T18:53:58+00:00
fixup! TB 40562: Added Tor Browser preferences to 000-tor-browser.js
TB 43653: Remove spoofOsInUserAgentHeader from 000-tor-browser.js.
This pref does not do anything, as its code has been removed for
tor-browser#43189.
- - - - -
1 changed file:
- browser/app/profile/000-tor-browser.js
Changes:
=====================================
browser/app/profile/000-tor-browser.js
=====================================
@@ -45,9 +45,6 @@ pref("network.http.connection-retry-timeout", 0);
// be reduced to the strictly required time).
pref("extensions.torbutton.use_nontor_proxy", false);
-// tor-browser#43170: Disable user-agent spoofing in HTTP header
-pref("privacy.resistFingerprinting.spoofOsInUserAgentHeader", false);
-
// Browser home page:
pref("browser.startup.homepage", "about:tor");
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/98bf774…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/98bf774…
You're receiving this email because of your account on gitlab.torproject.org.
Dan Ballard pushed to branch tor-browser-128.9.0esr-14.5-1 at The Tor Project / Applications / Tor Browser
Commits:
a97a4df4 by Pier Angelo Vendrame at 2025-04-14T14:59:47+02:00
fixup! TB 43505 [android]: Add 2025 UX Survey Campaign
TB 43648: Survey fixes for Android.
Display the survey for all languages, but display it only in the
release channel.
- - - - -
2 changed files:
- mobile/android/fenix/app/src/main/java/org/mozilla/fenix/home/HomeFragment.kt
- mobile/android/fenix/app/src/main/java/org/mozilla/fenix/tor/CampaignStrings.kt
Changes:
=====================================
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/home/HomeFragment.kt
=====================================
@@ -557,9 +557,6 @@ class HomeFragment : Fragment(), UserInteractionHandler {
}
private fun tryShowUX2025Survey() {
- val allowedLocales = arrayListOf("en", "es", "ru", "fr", "pt")
- val locale = CampaignStrings.getLocale()
-
val dateFormat = SimpleDateFormat("yyyy-MM-dd-hh-zzz")
val startDate = dateFormat.parse("2025-04-14-12-UTC")
@@ -570,7 +567,7 @@ class HomeFragment : Fragment(), UserInteractionHandler {
return // comment out to test
}
- if (allowedLocales.contains(locale) && !requireContext().settings().hideCampaign) {
+ if (BuildConfig.BUILD_TYPE == "release" && !requireContext().settings().hideCampaign) {
binding.onionPatternImage.visibility = View.GONE
binding.campaignBox.apply {
setViewCompositionStrategy(ViewCompositionStrategy.DisposeOnViewTreeLifecycleDestroyed)
=====================================
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/tor/CampaignStrings.kt
=====================================
@@ -49,8 +49,11 @@ object CampaignStrings {
)
fun getLocale(): String {
- // TODO: do we care about spoofEnglish setting?
- return Locale.getDefault().getLanguage();
+ val locale = Locale.getDefault().getLanguage()
+ if (translations.containsKey(locale)) {
+ return locale
+ }
+ return "en"
}
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/a97a4df…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/a97a4df…
You're receiving this email because of your account on gitlab.torproject.org.
asciiwolf deleted branch asciiwolf-rdns-desktop-files at The Tor Project / Applications / torbrowser-launcher
--
You're receiving this email because of your account on gitlab.torproject.org.