Pier Angelo Vendrame pushed to branch mullvad-browser-115.8.0esr-13.5-1 at The Tor Project / Applications / Mullvad Browser
Commits:
1b9657fb by Pier Angelo Vendrame at 2024-03-07T10:46:47+01:00
Bug 42438: Tweaks to the migration wizard.
Remove the items not compatible with our features (such as history) from
the migration wizard.
On Linux, allow to specify an alternative home directory, since we
usually change $HOME in our startup script.
- - - - -
2 changed files:
- browser/components/migration/ChromeMigrationUtils.sys.mjs
- browser/components/migration/content/migration-wizard.mjs
Changes:
=====================================
browser/components/migration/ChromeMigrationUtils.sys.mjs
=====================================
@@ -317,7 +317,10 @@ export var ChromeMigrationUtils = {
for (let subfolders of options) {
let rootDir = subfolders[0];
try {
- let targetPath = Services.dirsvc.get(rootDir, Ci.nsIFile).path;
+ let targetPath =
+ rootDir === "Home" && Services.env.get("BB_ORIGINAL_HOME")
+ ? Services.env.get("BB_ORIGINAL_HOME")
+ : Services.dirsvc.get(rootDir, Ci.nsIFile).path;
targetPath = PathUtils.join(targetPath, ...subfolders.slice(1));
if (await IOUtils.exists(targetPath)) {
return targetPath;
=====================================
browser/components/migration/content/migration-wizard.mjs
=====================================
@@ -416,7 +416,10 @@ export class MigrationWizard extends HTMLElement {
}
let key = panelItem.getAttribute("key");
- let resourceTypes = panelItem.resourceTypes;
+ const allowedTypes = ["BOOKMARKS"];
+ let resourceTypes = panelItem.resourceTypes.filter(t =>
+ allowedTypes.includes(t)
+ );
for (let child of this.#resourceTypeList.querySelectorAll(
"label[data-resource-type]"
View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/1b9…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/1b9…
You're receiving this email because of your account on gitlab.torproject.org.
Pier Angelo Vendrame pushed to branch base-browser-115.8.0esr-13.5-1 at The Tor Project / Applications / Tor Browser
Commits:
12b60a12 by Pier Angelo Vendrame at 2024-03-07T10:46:11+01:00
Bug 42438: Tweaks to the migration wizard.
Remove the items not compatible with our features (such as history) from
the migration wizard.
On Linux, allow to specify an alternative home directory, since we
usually change $HOME in our startup script.
- - - - -
2 changed files:
- browser/components/migration/ChromeMigrationUtils.sys.mjs
- browser/components/migration/content/migration-wizard.mjs
Changes:
=====================================
browser/components/migration/ChromeMigrationUtils.sys.mjs
=====================================
@@ -317,7 +317,10 @@ export var ChromeMigrationUtils = {
for (let subfolders of options) {
let rootDir = subfolders[0];
try {
- let targetPath = Services.dirsvc.get(rootDir, Ci.nsIFile).path;
+ let targetPath =
+ rootDir === "Home" && Services.env.get("BB_ORIGINAL_HOME")
+ ? Services.env.get("BB_ORIGINAL_HOME")
+ : Services.dirsvc.get(rootDir, Ci.nsIFile).path;
targetPath = PathUtils.join(targetPath, ...subfolders.slice(1));
if (await IOUtils.exists(targetPath)) {
return targetPath;
=====================================
browser/components/migration/content/migration-wizard.mjs
=====================================
@@ -416,7 +416,10 @@ export class MigrationWizard extends HTMLElement {
}
let key = panelItem.getAttribute("key");
- let resourceTypes = panelItem.resourceTypes;
+ const allowedTypes = ["BOOKMARKS"];
+ let resourceTypes = panelItem.resourceTypes.filter(t =>
+ allowedTypes.includes(t)
+ );
for (let child of this.#resourceTypeList.querySelectorAll(
"label[data-resource-type]"
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/12b60a1…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/12b60a1…
You're receiving this email because of your account on gitlab.torproject.org.
Pier Angelo Vendrame pushed to branch tor-browser-115.8.0esr-13.5-1 at The Tor Project / Applications / Tor Browser
Commits:
a014a0e0 by Pier Angelo Vendrame at 2024-03-07T10:44:55+01:00
Bug 42438: Tweaks to the migration wizard.
Remove the items not compatible with our features (such as history) from
the migration wizard.
On Linux, allow to specify an alternative home directory, since we
usually change $HOME in our startup script.
- - - - -
2 changed files:
- browser/components/migration/ChromeMigrationUtils.sys.mjs
- browser/components/migration/content/migration-wizard.mjs
Changes:
=====================================
browser/components/migration/ChromeMigrationUtils.sys.mjs
=====================================
@@ -317,7 +317,10 @@ export var ChromeMigrationUtils = {
for (let subfolders of options) {
let rootDir = subfolders[0];
try {
- let targetPath = Services.dirsvc.get(rootDir, Ci.nsIFile).path;
+ let targetPath =
+ rootDir === "Home" && Services.env.get("BB_ORIGINAL_HOME")
+ ? Services.env.get("BB_ORIGINAL_HOME")
+ : Services.dirsvc.get(rootDir, Ci.nsIFile).path;
targetPath = PathUtils.join(targetPath, ...subfolders.slice(1));
if (await IOUtils.exists(targetPath)) {
return targetPath;
=====================================
browser/components/migration/content/migration-wizard.mjs
=====================================
@@ -416,7 +416,10 @@ export class MigrationWizard extends HTMLElement {
}
let key = panelItem.getAttribute("key");
- let resourceTypes = panelItem.resourceTypes;
+ const allowedTypes = ["BOOKMARKS"];
+ let resourceTypes = panelItem.resourceTypes.filter(t =>
+ allowedTypes.includes(t)
+ );
for (let child of this.#resourceTypeList.querySelectorAll(
"label[data-resource-type]"
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/a014a0e…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/a014a0e…
You're receiving this email because of your account on gitlab.torproject.org.
Pier Angelo Vendrame pushed to branch main at The Tor Project / Applications / tor-browser-build
Commits:
14d5ad27 by Pier Angelo Vendrame at 2024-03-06T18:47:08+00:00
Bug 42438 (TB): Export the original $HOME on Linux.
We need it for the migration wizard (e.g., to import bookmarks).
- - - - -
1 changed file:
- projects/browser/RelativeLink/start-browser
Changes:
=====================================
projects/browser/RelativeLink/start-browser
=====================================
@@ -254,6 +254,7 @@ if [ "$register_desktop_app" -eq -1 ]; then
exit 0
fi
+export BB_ORIGINAL_HOME="$HOME"
HOME="${PWD}"
export HOME
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/1…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/1…
You're receiving this email because of your account on gitlab.torproject.org.
ma1 pushed to branch mullvad-browser-115.8.0esr-13.5-1 at The Tor Project / Applications / Mullvad Browser
Commits:
6da931f7 by hackademix at 2024-03-06T22:12:22+01:00
fixup! Bug 41918: Option to reuse last window size when letterboxing is enabled.
Fixes typo in RFHelper.sys.mjs (Service -> Services).
- - - - -
1 changed file:
- toolkit/components/resistfingerprinting/RFPHelper.sys.mjs
Changes:
=====================================
toolkit/components/resistfingerprinting/RFPHelper.sys.mjs
=====================================
@@ -223,7 +223,7 @@ class _RFPHelper {
_handlePrefChanged(data) {
switch (data) {
case kPrefResistFingerprinting:
- Service.prefs.clearUserPref(kPrefLetterboxingDidForceSize);
+ Services.prefs.clearUserPref(kPrefLetterboxingDidForceSize);
this._handleResistFingerprintingChanged();
break;
case kPrefSpoofEnglish:
@@ -231,7 +231,7 @@ class _RFPHelper {
this._handleSpoofEnglishChanged();
break;
case kPrefLetterboxing:
- Service.prefs.clearUserPref(kPrefLetterboxingDidForceSize);
+ Services.prefs.clearUserPref(kPrefLetterboxingDidForceSize);
case kPrefLetterboxingVcenter:
case kPrefLetterboxingGradient:
this._handleLetterboxingPrefChanged();
View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/6da…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/6da…
You're receiving this email because of your account on gitlab.torproject.org.
ma1 pushed to branch base-browser-115.8.0esr-13.5-1 at The Tor Project / Applications / Tor Browser
Commits:
1564281f by hackademix at 2024-03-06T22:10:59+01:00
fixup! Bug 41918: Option to reuse last window size when letterboxing is enabled.
Fixes typo in RFHelper.sys.mjs (Service -> Services).
- - - - -
1 changed file:
- toolkit/components/resistfingerprinting/RFPHelper.sys.mjs
Changes:
=====================================
toolkit/components/resistfingerprinting/RFPHelper.sys.mjs
=====================================
@@ -223,7 +223,7 @@ class _RFPHelper {
_handlePrefChanged(data) {
switch (data) {
case kPrefResistFingerprinting:
- Service.prefs.clearUserPref(kPrefLetterboxingDidForceSize);
+ Services.prefs.clearUserPref(kPrefLetterboxingDidForceSize);
this._handleResistFingerprintingChanged();
break;
case kPrefSpoofEnglish:
@@ -231,7 +231,7 @@ class _RFPHelper {
this._handleSpoofEnglishChanged();
break;
case kPrefLetterboxing:
- Service.prefs.clearUserPref(kPrefLetterboxingDidForceSize);
+ Services.prefs.clearUserPref(kPrefLetterboxingDidForceSize);
case kPrefLetterboxingVcenter:
case kPrefLetterboxingGradient:
this._handleLetterboxingPrefChanged();
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/1564281…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/1564281…
You're receiving this email because of your account on gitlab.torproject.org.
ma1 pushed to branch tor-browser-115.8.0esr-13.5-1 at The Tor Project / Applications / Tor Browser
Commits:
03dbfffc by hackademix at 2024-03-06T22:06:28+01:00
fixup! Bug 41918: Option to reuse last window size when letterboxing is enabled.
Fixes typo in RFHelper.sys.mjs (Service -> Services).
- - - - -
1 changed file:
- toolkit/components/resistfingerprinting/RFPHelper.sys.mjs
Changes:
=====================================
toolkit/components/resistfingerprinting/RFPHelper.sys.mjs
=====================================
@@ -223,7 +223,7 @@ class _RFPHelper {
_handlePrefChanged(data) {
switch (data) {
case kPrefResistFingerprinting:
- Service.prefs.clearUserPref(kPrefLetterboxingDidForceSize);
+ Services.prefs.clearUserPref(kPrefLetterboxingDidForceSize);
this._handleResistFingerprintingChanged();
break;
case kPrefSpoofEnglish:
@@ -231,7 +231,7 @@ class _RFPHelper {
this._handleSpoofEnglishChanged();
break;
case kPrefLetterboxing:
- Service.prefs.clearUserPref(kPrefLetterboxingDidForceSize);
+ Services.prefs.clearUserPref(kPrefLetterboxingDidForceSize);
case kPrefLetterboxingVcenter:
case kPrefLetterboxingGradient:
this._handleLetterboxingPrefChanged();
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/03dbfff…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/03dbfff…
You're receiving this email because of your account on gitlab.torproject.org.
richard pushed to branch tor-browser-115.8.0esr-13.5-1 at The Tor Project / Applications / Tor Browser
Commits:
ba957be4 by Henry Wilkes at 2024-03-06T18:40:27+00:00
fixup! Bug 40562: Added Tor Browser preferences to 000-tor-browser.js
Bug 42437: Drop "torbrowser.version" pref.
- - - - -
cba03e79 by Henry Wilkes at 2024-03-06T18:40:27+00:00
fixup! Bug 7494: Create local home page for TBB.
Bug 42437: Drop "torbrowser.version" pref.
- - - - -
f44e1549 by Henry Wilkes at 2024-03-06T18:40:27+00:00
fixup! Bug 12620: TorBrowser regression tests
Bug 42437: Drop "torbrowser.version" pref.
- - - - -
3 changed files:
- browser/app/profile/000-tor-browser.js
- browser/components/abouttor/AboutTorMessage.sys.mjs
- tbb-tests/browser_tor_TB4.js
Changes:
=====================================
browser/app/profile/000-tor-browser.js
=====================================
@@ -46,8 +46,6 @@ pref("network.http.http3.enable", false);
// 0 = do not use a second connection, see all.js and #7656
pref("network.http.connection-retry-timeout", 0);
-#expand pref("torbrowser.version", __BASE_BROWSER_VERSION_QUOTED__);
-
// Tor Browser used to be compatible with non-Tor proxies. This feature is not
// available anymore, but this legacy preference can be still used to disable
// first-party domain circuit isolation.
=====================================
browser/components/abouttor/AboutTorMessage.sys.mjs
=====================================
@@ -27,7 +27,9 @@ export const AboutTorMessage = {
if (Services.prefs.getBoolPref(shouldNotifyPref, false)) {
Services.prefs.clearUserPref(shouldNotifyPref);
return {
- updateVersion: Services.prefs.getCharPref("torbrowser.version"),
+ updateVersion: Services.prefs.getCharPref(
+ "browser.startup.homepage_override.torbrowser.version"
+ ),
updateURL:
Services.prefs.getCharPref("torbrowser.post_update.url", "") ||
Services.urlFormatter.formatURLPref("startup.homepage_override_url"),
=====================================
tbb-tests/browser_tor_TB4.js
=====================================
@@ -11,9 +11,6 @@ let expectedPrefs = [
// Disable the "Refresh" prompt that is displayed for stale profiles.
["browser.disableResetPrompt", true],
-
- // Version placeholder
- ["torbrowser.version", "dev-build"],
];
let getPref = function (prefName) {
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/compare/12e3f7…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/compare/12e3f7…
You're receiving this email because of your account on gitlab.torproject.org.
Pier Angelo Vendrame pushed to branch tor-browser-115.8.0esr-13.5-1 at The Tor Project / Applications / Tor Browser
Commits:
d4310b2a by Pier Angelo Vendrame at 2024-03-06T19:22:00+01:00
fixup! Firefox preference overrides.
MB 80: Allow default browser on Windows for Mullvad Browser
- - - - -
12e3f725 by Pier Angelo Vendrame at 2024-03-06T19:22:09+01:00
fixup! Bug 9173: Change the default Firefox profile directory to be relative.
Force `GenerateAppUserModelID` to use the profile directory in portable
mode.
- - - - -
2 changed files:
- browser/app/profile/001-base-profile.js
- widget/windows/WinTaskbar.cpp
Changes:
=====================================
browser/app/profile/001-base-profile.js
=====================================
@@ -631,11 +631,6 @@ pref("privacy.query_stripping.strip_on_share.enabled", true);
pref("dom.text-recognition.enabled", false);
#ifdef XP_WIN
-// prefs to disable jump-list entries in the taskbar on Windows (see bug #12885)
-// this pref changes the app's set AUMID to be dependent on the profile path, rather than
-// attempting to read it from the registry; this is necessary so that the file generated
-// by the jumplist system can be properly deleted if it is disabled
-pref("taskbar.grouping.useprofile", true);
pref("browser.taskbar.lists.enabled", false);
pref("browser.taskbar.lists.frequent.enabled", false);
pref("browser.taskbar.lists.tasks.enabled", false);
=====================================
widget/windows/WinTaskbar.cpp
=====================================
@@ -209,6 +209,19 @@ bool WinTaskbar::GenerateAppUserModelID(nsAString& aAppUserModelId,
// If marked as such in prefs, use a hash of the profile path for the id
// instead of the install path hash setup by the installer.
bool useProfile = Preferences::GetBool("taskbar.grouping.useprofile", false);
+
+ {
+ // For portable mode, force the AUMID to be based on the profile directory
+ // instead of reading it from the registry.
+ bool isPortable = true;
+ // Do not even check if taskbar.grouping.useprofile is already true.
+ if (!useProfile &&
+ NS_SUCCEEDED(gDirServiceProvider->GetIsPortableMode(&isPortable)) &&
+ isPortable) {
+ useProfile = true;
+ }
+ }
+
if (useProfile) {
nsCOMPtr<nsIFile> profileDir;
NS_GetSpecialDirectory(NS_APP_USER_PROFILE_50_DIR,
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/compare/f4471d…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/compare/f4471d…
You're receiving this email because of your account on gitlab.torproject.org.