Verified Commit 8abfc874 authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame 🎃
Browse files

MB 87: Disable the default browser box on Windows and Linux

Windows and Linux will be distributed only as portable apps at the
beginning, so they should not be settable as default browsers.
We will need to improve the logic once we decide to ship system-wide
installers, too.
parent 202c7e2f
Loading
Loading
Loading
Loading
+3 −1
Changes for browser/components/preferences/main.js: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -1335,7 +1335,9 @@ var gMainPane = {
    if (AppConstants.HAVE_SHELL_SERVICE) {
      let shellSvc = getShellService();
      let defaultBrowserBox = document.getElementById("defaultBrowserBox");
      if (!shellSvc) {
      // privacy-browser#87: Let's keep the default browser box only on macOS
      // for now.
      if (!shellSvc || Services.appinfo.OS !== "Darwin") {
        defaultBrowserBox.hidden = true;
        return;
      }