[tbb-commits] [Git][tpo/applications/mullvad-browser][mullvad-browser-115.12.0esr-13.5-1] Bug 305: Disable setting default browser on Windows

richard (@richard) git at gitlab.torproject.org
Mon Jun 10 21:57:14 UTC 2024



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.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tbb-commits/attachments/20240610/4bbefb92/attachment-0001.htm>


More information about the tbb-commits mailing list