Commit 568cd4f2 authored by Erica Wright's avatar Erica Wright
Browse files

Bug 1549825 - Create empty about:protections page. r=johannh

Differential Revision: https://phabricator.services.mozilla.com/D30652

--HG--
extra : moz-landing-system : lando
parent 98c2382a
......@@ -115,6 +115,10 @@ static const RedirEntry kRedirMap[] = {
nsIAboutModule::URI_MUST_LOAD_IN_CHILD |
nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT |
nsIAboutModule::ALLOW_SCRIPT | nsIAboutModule::HIDE_FROM_ABOUTABOUT},
{"protections", "chrome://browser/content/protections/protections.html",
nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT |
nsIAboutModule::URI_MUST_LOAD_IN_CHILD | nsIAboutModule::ALLOW_SCRIPT |
nsIAboutModule::URI_CAN_LOAD_IN_PRIVILEGED_CHILD},
};
static nsAutoCString GetAboutModuleName(nsIURI* aURI) {
......
......@@ -19,6 +19,7 @@ pages = [
'policies',
'preferences',
'privatebrowsing',
'protections',
'reader',
'restartrequired',
'rights',
......
/* 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/. */
.under-construction {
background-image: url("chrome://browser/content/illustrations/under-construction.svg");
background-repeat: no-repeat;
background-position: center;
min-height: 300px;
min-width: 300px;
/* Move the image down a bit - should be slightly higher than halfway down the page */
margin-top: -10%;
}
<!-- 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/. -->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Security-Policy" content="default-src chrome: blob:">
<link rel="stylesheet" media="screen, projection" type="text/css"
href="chrome://global/skin/in-content/info-pages.css" title="infop">
<link rel="stylesheet" type="text/css"
href="chrome://browser/content/protections/protections.css">
<script src="chrome://browser/content/protections/protections.js"></script>
<link rel="icon" href="chrome://global/skin/icons/warning.svg">
<link rel="localization" href="browser/aboutProtections.ftl">
<title>Protection Report</title>
</head>
<body>
<div class="under-construction"><div/>
</body>
</html>
# 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/.
browser.jar:
content/browser/protections.html (content/protections.html)
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# 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/.
JAR_MANIFESTS += ['jar.mn']
with Files('**'):
BUG_COMPONENT = ('Firefox', 'Tracking Protection')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment