Skip to content
Snippets Groups Projects
Verified Commit bd64d5f0 authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame :jack_o_lantern:
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 e61d7a1b
Branches
Tags
1 merge request!101MB 261: Rebased MB alpha onto 115.7.0
......@@ -1744,7 +1744,9 @@ var gMainPane = {
let defaultBrowserBox = document.getElementById("defaultBrowserBox");
let isInFlatpak = gGIOService?.isRunningUnderFlatpak;
// Flatpak does not support setting nor detection of default browser
if (!shellSvc || isInFlatpak) {
// privacy-browser#87: Let's keep the default browser box only on macOS
// for now.
if (!shellSvc || isInFlatpak || Services.appinfo.OS !== "Darwin") {
defaultBrowserBox.hidden = true;
return;
}
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment