Commit a931b8a3 authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame 🎃
Browse files

MB 63: Customize some about pages for Mullvad Browser

Also:
#57: Purge unneeded about: pages
parent 6e894d14
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -216,6 +216,8 @@ static const RedirEntry kRedirMap[] = {
#    endif
         nsIAboutModule::ALLOW_SCRIPT},
#  endif
#endif
#ifdef MULLVAD_BROWSER
    {"telemetry", "chrome://global/content/aboutTelemetry.xhtml",
     nsIAboutModule::ALLOW_SCRIPT | nsIAboutModule::IS_SECURE_CHROME_UI},
#endif
+1 −2
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@ about_pages = [
    'serviceworkers',
    'srcdoc',
    'support',
    'telemetry',
    # Removed 'url-classifier'. tor-browser#42831.
]

@@ -35,8 +36,6 @@ if buildconfig.substs['MOZ_WIDGET_TOOLKIT'] != 'android':
    about_pages.append('addons')
if defined('MOZ_CRASHREPORTER'):
    about_pages.append('crashes')
if defined('MOZ_TELEMETRY_REPORTING'):
    about_pages.append('telemetry')
if defined('MOZ_WEBRTC'):
    about_pages.append('webrtc')
if buildconfig.substs['MOZ_WIDGET_TOOLKIT'] != 'android':
+32 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html [ <!ENTITY % htmlDTD PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
%htmlDTD; ]>

<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta
      http-equiv="Content-Security-Policy"
      content="default-src chrome:; object-src 'none'"
    />
    <meta name="color-scheme" content="light dark" />
    <title data-l10n-id="telemetry-title"></title>
    <link
      rel="stylesheet"
      href="chrome://global/skin/in-content/info-pages.css"
      type="text/css"
    />
    <link rel="localization" href="branding/brand.ftl" />
    <link rel="localization" href="toolkit/global/mullvad-browser.ftl" />
  </head>

  <body id="your-rights" class="aboutPageWideContainer">
    <div class="container">
      <h1 data-l10n-id="telemetry-title"></h1>
      <p data-l10n-id="telemetry-description"></p>
    </div>
  </body>
</html>
+3 −0
Original line number Diff line number Diff line
@@ -48,6 +48,9 @@ toolkit.jar:
   content/global/aboutTelemetry.js
   content/global/aboutTelemetry.xhtml
   content/global/aboutTelemetry.css
#endif
#ifdef MULLVAD_BROWSER
   content/global/aboutTelemetry.xhtml          (aboutTelemetryMullvad.xhtml)
#endif
   content/global/aboutUrlClassifier.js
   content/global/aboutUrlClassifier.xhtml