richard pushed to branch mullvad-browser-115.12.0esr-13.5-1 at The Tor Project 
/ Applications / Mullvad Browser


Commits:
dace2d0a by june wilde at 2024-06-10T12:49:40-07:00
Bug 305: Disable setting default browser on Windows
Until we can pull in upstream changes to fix breakage in setting
the Mullvad Browser as default in Windows 10/11 we're disabling
the ability to do so via about:preferences as well as via the
startup query dialog

- - - - -


2 changed files:

- browser/components/preferences/main.js
- browser/components/shell/ShellService.sys.mjs


Changes:

=====================================
browser/components/preferences/main.js
=====================================
@@ -1765,7 +1765,10 @@ var gMainPane = {
         "@mozilla.org/xre/directory-provider;1"
       ].getService(Ci.nsIXREDirProvider);
       // Flatpak does not support setting nor detection of default browser
-      if (!shellSvc || isInFlatpak || xreDirProvider.isPortableMode) {
+      // Mullvad Bug 298: the ability to set Mullvad as the default browser in
+      // Windows is currently not functioning so hide the DOM Element 
containing
+      // default browser settings on non-portable Windows installs as well
+      if (!shellSvc || isInFlatpak || xreDirProvider.isPortableMode || 
AppConstants.platform == "win") {
         defaultBrowserBox.hidden = true;
         return;
       }


=====================================
browser/components/shell/ShellService.sys.mjs
=====================================
@@ -92,6 +92,13 @@ let ShellServiceInternal = {
    */
   _checkedThisSession: false,
   get shouldCheckDefaultBrowser() {
+    // Mullvad Bug 298: the ability to set Mullvad as the default browser in
+    // Windows is currently not functioning so in lieu of overwriting user 
prefs
+    // or shipping a new default return early here
+    if(AppConstants.platform == "win") {
+      return false;
+    }
+
     // If we've already checked, the browser has been started and this is a
     // new window open, and we don't want to check again.
     if (this._checkedThisSession) {



View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/dace2d0a68dcf9e608ef0c1c4ede4133577705e1

-- 
This project does not include diff previews in email notifications.
View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/dace2d0a68dcf9e608ef0c1c4ede4133577705e1
You're receiving this email because of your account on gitlab.torproject.org.


_______________________________________________
tor-commits mailing list
tor-commits@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits

Reply via email to