Pier Angelo Vendrame pushed to branch mullvad-browser-115.7.0esr-13.5-1 at The Tor Project / Applications / Mullvad Browser
Commits:
3ea5b1dc by Pier Angelo Vendrame at 2024-02-07T15:27:23+00:00
fixup! Bug 9173: Change the default Firefox profile directory to be relative.
Add a method to query whether the browser is in portable mode.
- - - - -
7c5facb8 by Pier Angelo Vendrame at 2024-02-07T15:27:23+00:00
fixup! Bug 4234: Use the Firefox Update Process for Base Browser.
Allow running the postupdate process and change the update directory
for when not running in portable mode.
- - - - -
438c7fe9 by Pier Angelo Vendrame at 2024-02-07T15:27:23+00:00
fixup! MB 112: Updater customization for Mullvad Browser
MB 200: Enable system installs for Mullvad Browser
Customize the post update executable name, to avoid any confusion with
Mozilla's helper.exe, since we intend using a much simpler post update
binary.
- - - - -
4 changed files:
- browser/installer/windows/nsis/updater_append.ini
- toolkit/mozapps/update/updater/updater.cpp
- toolkit/xre/nsIXREDirProvider.idl
- toolkit/xre/nsXREDirProvider.cpp
Changes:
=====================================
browser/installer/windows/nsis/updater_append.ini
=====================================
@@ -7,6 +7,8 @@
[PostUpdateWin]
; ExeRelPath is the path to the PostUpdateWin executable relative to the
; application executable.
-ExeRelPath=uninstall\helper.exe
+ExeRelPath=postupdate.exe
; ExeArg is the argument to pass to the PostUpdateWin exe
+; We do not need any argument, but an empty string here will make updater.exe
+; not run this step.
ExeArg=/PostUpdate
=====================================
toolkit/mozapps/update/updater/updater.cpp
=====================================
@@ -2807,7 +2807,7 @@ int LaunchCallbackAndPostProcessApps(int argc, NS_tchar** argv,
#endif
if (argc > callbackIndex) {
-#if defined(XP_WIN) && !defined(BASE_BROWSER_UPDATE)
+#if defined(XP_WIN)
if (gSucceeded) {
if (!LaunchWinPostProcess(gInstallDirPath, gPatchDirPath)) {
fprintf(stderr, "The post update process was not launched");
=====================================
toolkit/xre/nsIXREDirProvider.idl
=====================================
@@ -20,4 +20,9 @@ interface nsIXREDirProvider : nsISupports
* Gets the hash for the current installation directory.
*/
AString getInstallHash();
+
+ /**
+ * Tells whether the browser has been started in portable mode.
+ */
+ readonly attribute bool isPortableMode;
};
=====================================
toolkit/xre/nsXREDirProvider.cpp
=====================================
@@ -1109,7 +1109,14 @@ nsresult nsXREDirProvider::GetUpdateRootDir(nsIFile** aResult,
rv = GetUserDataDirectory(getter_AddRefs(updRoot), false);
NS_ENSURE_SUCCESS(rv, rv);
# else
- rv = GetUserDataDirectoryHome(getter_AddRefs(updRoot), false);
+ bool isPortable = true;
+ rv = GetIsPortableMode(&isPortable);
+ NS_ENSURE_SUCCESS(rv, rv);
+ if (isPortable) {
+ rv = GetUserDataDirectoryHome(getter_AddRefs(updRoot), false);
+ } else {
+ rv = GetUserDataDirectory(getter_AddRefs(updRoot), true);
+ }
NS_ENSURE_SUCCESS(rv, rv);
# endif
rv = updRoot->AppendNative("UpdateInfo"_ns);
@@ -1324,6 +1331,20 @@ nsresult nsXREDirProvider::GetPortableDataDir(nsIFile** aFile,
}
#endif
+NS_IMETHODIMP nsXREDirProvider::GetIsPortableMode(bool* aIsPortableMode) {
+#ifdef RELATIVE_DATA_DIR
+ if (gDataDirPortable) {
+ *aIsPortableMode = *gDataDirPortable;
+ } else {
+ nsCOMPtr<nsIFile> dir;
+ GetPortableDataDir(getter_AddRefs(dir), *aIsPortableMode);
+ }
+#else
+ *aIsPortableMode = false;
+#endif
+ return NS_OK;
+}
+
nsresult nsXREDirProvider::GetUserDataDirectoryHome(nsIFile** aFile,
bool aLocal) {
// Copied from nsAppFileLocationProvider (more or less)
View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/compare/7f…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/compare/7f…
You're receiving this email because of your account on gitlab.torproject.org.
richard pushed to branch tor-browser-115.7.0esr-13.5-1 at The Tor Project / Applications / Tor Browser
Commits:
9419bbc3 by Henry Wilkes at 2024-02-07T12:54:41+00:00
fixup! Bug 31286: Implementation of bridge, proxy, and firewall settings in about:preferences#connection
Bug 41814: Use "Tor bridge" instead of "vanilla bridge".
- - - - -
b90988c5 by Henry Wilkes at 2024-02-07T12:54:41+00:00
fixup! Tor Browser strings
Bug 41814: Use "Tor bridge" instead of "vanilla bridge".
- - - - -
3 changed files:
- browser/components/torpreferences/content/connectionPane.js
- browser/components/torpreferences/content/provideBridgeDialog.js
- browser/locales/en-US/browser/tor-browser.ftl
Changes:
=====================================
browser/components/torpreferences/content/connectionPane.js
=====================================
@@ -665,12 +665,15 @@ const gBridgeGrid = {
row.cells.push({ element, focusEl, columnIndex, row });
}
- // TODO: properly handle "vanilla" bridges?
- document.l10n.setAttributes(
- row.element.querySelector(".tor-bridges-type-cell"),
- "tor-bridges-type-prefix",
- { type: details?.transport ?? "vanilla" }
- );
+ const transport = details?.transport ?? "vanilla";
+ const typeCell = row.element.querySelector(".tor-bridges-type-cell");
+ if (transport === "vanilla") {
+ document.l10n.setAttributes(typeCell, "tor-bridges-type-prefix-generic");
+ } else {
+ document.l10n.setAttributes(typeCell, "tor-bridges-type-prefix", {
+ type: transport,
+ });
+ }
row.element.querySelector(".tor-bridges-address-cell").textContent =
bridgeLine;
=====================================
browser/components/torpreferences/content/provideBridgeDialog.js
=====================================
@@ -474,12 +474,18 @@ const gProvideBridgeDialog = {
emojiBlock.append(cell);
}
- // TODO: properly handle "vanilla" bridges?
- document.l10n.setAttributes(
- rowEl.querySelector(".tor-bridges-type-cell"),
- "tor-bridges-type-prefix",
- { type: details?.transport ?? "vanilla" }
- );
+ const transport = details?.transport ?? "vanilla";
+ const typeCell = rowEl.querySelector(".tor-bridges-type-cell");
+ if (transport === "vanilla") {
+ document.l10n.setAttributes(
+ typeCell,
+ "tor-bridges-type-prefix-generic"
+ );
+ } else {
+ document.l10n.setAttributes(typeCell, "tor-bridges-type-prefix", {
+ type: transport,
+ });
+ }
rowEl.querySelector(".tor-bridges-address-cell").textContent = bridgeLine;
=====================================
browser/locales/en-US/browser/tor-browser.ftl
=====================================
@@ -82,6 +82,8 @@ tor-bridges-built-in-status-connected = Connected
# Shown at the start of a Tor bridge line.
# $type (String) - The Tor bridge type ("snowflake", "obfs4", "meek-azure").
tor-bridges-type-prefix = { $type } bridge:
+# Shown at the start of a Tor bridge line, when the transport type is unknown (or "vanilla").
+tor-bridges-type-prefix-generic = Tor bridge:
# The name and accessible description for a bridge emoji cell. Each bridge address can be hashed into four emojis shown to the user (bridgemoji feature). This cell corresponds to a *single* such emoji. The "title" should just be emojiName. The "aria-description" should give screen reader users enough of a hint that the cell contains a single emoji.
# $emojiName (String) - The name of the emoji, already localized.
# E.g. with Orca screen reader in en-US this would read "unicorn. Row 2 Column 2. Emoji".
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/compare/f8f90f…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/compare/f8f90f…
You're receiving this email because of your account on gitlab.torproject.org.
richard pushed to branch mullvad-browser-115.7.0esr-13.5-1 at The Tor Project / Applications / Mullvad Browser
Commits:
0daaf26b by Pier Angelo Vendrame at 2024-02-07T12:25:35+00:00
Revert "Bug 42374: Check for spoof English in number conversions"
This reverts commit a7932fac62c8a955bdc3f08a9b81b7f2562a4eff.
We are instead backporting the uplifted commits.
- - - - -
c2feed1c by Pier Angelo Vendrame at 2024-02-07T12:25:35+00:00
Bug 1875306 - Localize numbers in the underflow and overflow error messages. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D198965
- - - - -
7f263eaf by Pier Angelo Vendrame at 2024-02-07T12:25:35+00:00
Bug 1875313 - Use en-US as a fallback when spoof English is enabled in ICUUtils. r=timhuang,tjr
Differential Revision: https://phabricator.services.mozilla.com/D198967
- - - - -
1 changed file:
- intl/unicharutil/util/ICUUtils.cpp
Changes:
=====================================
intl/unicharutil/util/ICUUtils.cpp
=====================================
@@ -47,15 +47,13 @@ void ICUUtils::LanguageTagIterForContent::GetNext(nsACString& aBCP47LangTag) {
if (mCurrentFallbackIndex < 2) {
mCurrentFallbackIndex = 2;
- // Else take the app's locale:
-
+ // Else take the app's locale (or en-US, if spoof English applies):
const bool spoofLocale = nsContentUtils::SpoofLocaleEnglish() &&
!mContent->OwnerDoc()->AllowsL10n();
if (spoofLocale) {
aBCP47LangTag.AssignLiteral("en-US");
return;
}
-
nsAutoCString appLocale;
LocaleService::GetInstance()->GetAppLocaleAsBCP47(aBCP47LangTag);
return;
View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/compare/a0…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/compare/a0…
You're receiving this email because of your account on gitlab.torproject.org.
richard pushed to branch tor-browser-115.7.0esr-13.5-1 at The Tor Project / Applications / Tor Browser
Commits:
fd8ea798 by Pier Angelo Vendrame at 2024-02-07T12:13:26+00:00
Revert "Bug 42374: Check for spoof English in number conversions"
This reverts commit a7932fac62c8a955bdc3f08a9b81b7f2562a4eff.
We are instead backporting the uplifted commits.
- - - - -
e750db60 by Pier Angelo Vendrame at 2024-02-07T12:13:26+00:00
Bug 1875306 - Localize numbers in the underflow and overflow error messages. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D198965
- - - - -
f8f90f9f by Pier Angelo Vendrame at 2024-02-07T12:13:26+00:00
Bug 1875313 - Use en-US as a fallback when spoof English is enabled in ICUUtils. r=timhuang,tjr
Differential Revision: https://phabricator.services.mozilla.com/D198967
- - - - -
1 changed file:
- intl/unicharutil/util/ICUUtils.cpp
Changes:
=====================================
intl/unicharutil/util/ICUUtils.cpp
=====================================
@@ -47,15 +47,13 @@ void ICUUtils::LanguageTagIterForContent::GetNext(nsACString& aBCP47LangTag) {
if (mCurrentFallbackIndex < 2) {
mCurrentFallbackIndex = 2;
- // Else take the app's locale:
-
+ // Else take the app's locale (or en-US, if spoof English applies):
const bool spoofLocale = nsContentUtils::SpoofLocaleEnglish() &&
!mContent->OwnerDoc()->AllowsL10n();
if (spoofLocale) {
aBCP47LangTag.AssignLiteral("en-US");
return;
}
-
nsAutoCString appLocale;
LocaleService::GetInstance()->GetAppLocaleAsBCP47(aBCP47LangTag);
return;
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/compare/cc050d…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/compare/cc050d…
You're receiving this email because of your account on gitlab.torproject.org.
boklm pushed to branch main at The Tor Project / Applications / tor-browser-build
Commits:
cc41e2d7 by Nicolas Vigier at 2024-02-07T10:51:09+01:00
Update rbm for rbm#40068 and rbm#40069
- - - - -
1 changed file:
- rbm
Changes:
=====================================
rbm
=====================================
@@ -1 +1 @@
-Subproject commit b5e5b04aaf677c4bacfb5ace45598313286bfdf6
+Subproject commit 067c30ee4cf3baa1c0b7e3674d785cf9e5bec8fe
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/c…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/c…
You're receiving this email because of your account on gitlab.torproject.org.