Commit a738ad42 authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame 🎃 Committed by morgan
Browse files

MB 63: Customize some about pages for Mullvad Browser

Also:
#57: Purge unneeded about: pages
parent c0fc99c4
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -86,9 +86,11 @@ static const RedirEntry kRedirMap[] = {
    {"rights", "chrome://global/content/aboutRights.xhtml",
     nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT |
         nsIAboutModule::ALLOW_SCRIPT | nsIAboutModule::IS_SECURE_CHROME_UI},
#ifndef MULLVAD_BROWSER
    {"robots", "chrome://browser/content/aboutRobots.xhtml",
     nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT |
         nsIAboutModule::ALLOW_SCRIPT},
#endif
    {"sessionrestore", "chrome://browser/content/aboutSessionRestore.xhtml",
     nsIAboutModule::ALLOW_SCRIPT | nsIAboutModule::HIDE_FROM_ABOUTABOUT |
         nsIAboutModule::IS_SECURE_CHROME_UI},
+0 −1
Original line number Diff line number Diff line
@@ -23,7 +23,6 @@ pages = [
    'reader',
    'restartrequired',
    'rights',
    'robots',
    'sessionrestore',
    'settings',
    'shoppingsidebar',
+2 −0
Original line number Diff line number Diff line
@@ -135,8 +135,10 @@ static const RedirEntry kRedirMap[] = {
         nsIAboutModule::URI_MUST_LOAD_IN_CHILD |
         nsIAboutModule::URI_CAN_LOAD_IN_PRIVILEGEDABOUT_PROCESS |
         nsIAboutModule::IS_SECURE_CHROME_UI},
#ifndef MULLVAD_BROWSER
    {"mozilla", "chrome://global/content/mozilla.html",
     nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT},
#endif
#if !defined(ANDROID) && !defined(XP_WIN)
    {"webauthn", "chrome://global/content/aboutWebauthn.html",
     nsIAboutModule::ALLOW_SCRIPT | nsIAboutModule::IS_SECURE_CHROME_UI},
+0 −1
Original line number Diff line number Diff line
@@ -22,7 +22,6 @@ about_pages = [
    'logging',
    'logo',
    'memory',
    'mozilla',
    'neterror',
    'networking',
    'performance',
+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/about/aboutRightsMullvad.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>
Loading