aboutsummaryrefslogtreecommitdiff
path: root/profiles/safebrowsing.nix
blob: 79f3c822dc95e9174bfaa3b447a42160f00346b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ ffLib }: rec {
  meta.description = ''
    Safebrowsing is a feature meant to protect the user from malicious websites and downloads.

    See:
      - https://wiki.mozilla.org/Security/Safe_Browsing
      - https://wiki.mozilla.org/Security/Application_Reputation
  '';

  disableDownloads.preferences = {
    browser.safebrowsing = {
      downloads = {
        # TODO: does this do offline checks?
        enabled = false;
        remote = {
          enabled = false;
          url = "";
        };
      };
    };
  };

  disablePhishing.preferences = {
    browser.safebrowsing.phishing.enabled = false;
  };

  disableMalware.preferences = {
    browser.safebrowsing.malware.enabled = false;
  };

  disableAll = ffLib.mergeProfiles [ disableDownloads disablePhishing disableMalware ];
}