Commit bd7c2ff5 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 c5df6e5c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -87,7 +87,7 @@ static const RedirEntry kRedirMap[] = {
    {"profiling",
     "chrome://devtools/content/performance-new/aboutprofiling/index.html",
     nsIAboutModule::ALLOW_SCRIPT | nsIAboutModule::IS_SECURE_CHROME_UI},
    {"rights", "https://www.mozilla.org/about/legal/terms/firefox/",
    {"rights", "chrome://global/content/aboutRights.xhtml",
     nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT |
         nsIAboutModule::URI_MUST_LOAD_IN_CHILD},
#ifndef BASE_BROWSER_VERSION
+2 −0
Original line number Diff line number Diff line
@@ -204,6 +204,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
@@ -31,6 +31,7 @@ about_pages = [
    'support',
    # Remove about:translations since translations are disabled.
    # See tor-browser#44045 and tor-browser#42872.
    'telemetry',
    # Removed 'url-classifier'. tor-browser#42831.
]

@@ -38,8 +39,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':
+45 −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="rights-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/about/aboutRights.ftl" />
    <link rel="localization" href="toolkit/global/mullvad-browser.ftl" />
  </head>

  <body id="your-rights" class="aboutPageWideContainer">
    <div class="container">
      <h1 data-l10n-id="rights-title"></h1>

      <p data-l10n-id="rights-mullvad-intro"></p>
      <p data-l10n-id="rights-mullvad-you-should-know"></p>

      <ul>
        <li data-l10n-id="rights-intro-point-1">
          <a
            href="http://www.mozilla.org/MPL/"
            data-l10n-name="mozilla-public-license-link"
          ></a>
        </li>
        <li data-l10n-id="rights-mullvad-trademarks"></li>
      </ul>
    </div>
  </body>
</html>
+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>
Loading