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

MB 63: Customize some about pages for Mullvad Browser

Also:
mullvad-browser#57: Purge unneeded about: pages
parent ad0f5d2e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -82,9 +82,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
@@ -21,7 +21,6 @@ pages = [
    'reader',
    'restartrequired',
    'rights',
    'robots',
    'sessionrestore',
    'tabcrashed',
    'unloads',
+2 −0
Original line number Diff line number Diff line
@@ -114,8 +114,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
    {"neterror", "chrome://global/content/aboutNetError.xhtml",
     nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT |
         nsIAboutModule::URI_CAN_LOAD_IN_CHILD | nsIAboutModule::ALLOW_SCRIPT |
+0 −1
Original line number Diff line number Diff line
@@ -20,7 +20,6 @@ about_pages = [
    'logging',
    'logo',
    'memory',
    'mozilla',
    'neterror',
    'networking',
    'performance',
+37 −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