Commit bed5f8c9 authored by henry's avatar henry Committed by Pier Angelo Vendrame
Browse files

fixup! TB 40701: Add security warning when downloading a file

TB 45180: Add the download warning to the settings.
parent 8fe17895
Loading
Loading
Loading
Loading
+24 −0
Original line number Diff line number Diff line
@@ -372,6 +372,10 @@ Preferences.addSetting({
  id: "applicationsGroup",
});

Preferences.addSetting({
  id: "downloadsTorWarningBanner",
});

Preferences.addSetting({
  id: "applicationsFilter",
  get(val) {
@@ -1846,6 +1850,26 @@ SettingGroupManager.registerGroups({
    headingLevel: 2,
    inProgress: true,
    items: [
      {
        id: "downloadsTorWarningBanner",
        l10nId: "downloads-tor-warning-message-bar",
        control: "moz-message-bar",
        controlAttrs: {
          role: "complementary",
          type: "warning",
        },
        options: [
          {
            l10nId: "downloads-tor-warning-tails-link",
            slot: "support-link",
            control: "a",
            controlAttrs: {
              href: "https://tails.net/",
              target: "_blank",
            },
          },
        ],
      },
      {
        id: "applicationsFilter",
        control: "moz-input-search",