Skip to content

Commit a79aa16

Browse files
author
Kanika Saini
committed
Bug 1465953 - Create the basic structure for an about:policies page. r=felipe
1 parent b4b62f9 commit a79aa16

File tree

7 files changed

+38
-0
lines changed

7 files changed

+38
-0
lines changed

browser/components/about/AboutRedirector.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ static const RedirEntry kRedirMap[] = {
6363
nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT |
6464
nsIAboutModule::ALLOW_SCRIPT |
6565
nsIAboutModule::HIDE_FROM_ABOUTABOUT },
66+
{ "policies", "chrome://browser/content/aboutPolicies.xhtml",
67+
nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT |
68+
nsIAboutModule::ALLOW_SCRIPT },
6669
{ "privatebrowsing", "chrome://browser/content/aboutPrivateBrowsing.xhtml",
6770
nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT |
6871
nsIAboutModule::URI_MUST_LOAD_IN_CHILD |

browser/components/build/nsModule.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ static const mozilla::Module::ContractIDEntry kBrowserContracts[] = {
102102
{ NS_ABOUT_MODULE_CONTRACTID_PREFIX "reader", &kNS_BROWSER_ABOUT_REDIRECTOR_CID },
103103
{ NS_ABOUT_MODULE_CONTRACTID_PREFIX "restartrequired", &kNS_BROWSER_ABOUT_REDIRECTOR_CID },
104104
{ NS_ABOUT_MODULE_CONTRACTID_PREFIX "welcome", &kNS_BROWSER_ABOUT_REDIRECTOR_CID },
105+
{ NS_ABOUT_MODULE_CONTRACTID_PREFIX "policies", &kNS_BROWSER_ABOUT_REDIRECTOR_CID },
105106
#if defined(XP_WIN)
106107
{ NS_IEHISTORYENUMERATOR_CONTRACTID, &kNS_WINIEHISTORYENUMERATOR_CID },
107108
#elif defined(XP_MACOSX)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/* This Source Code Form is subject to the terms of the Mozilla Public
2+
* License, v. 2.0. If a copy of the MPL was not distributed with this
3+
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/* This Source Code Form is subject to the terms of the Mozilla Public
2+
* License, v. 2.0. If a copy of the MPL was not distributed with this
3+
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4+
5+
/* eslint-env mozilla/frame-script */
6+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
# This Source Code Form is subject to the terms of the Mozilla Public
4+
# License, v. 2.0. If a copy of the MPL was not distributed with this
5+
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
6+
-->
7+
<!DOCTYPE html>
8+
9+
<html xmlns="http://www.w3.org/1999/xhtml">
10+
<head>
11+
</head>
12+
13+
<body>
14+
</body>
15+
</html>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# This Source Code Form is subject to the terms of the Mozilla Public
2+
# License, v. 2.0. If a copy of the MPL was not distributed with this
3+
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
4+
5+
browser.jar:
6+
content/browser/aboutPolicies.css (content/aboutPolicies.css)
7+
content/browser/aboutPolicies.xhtml (content/aboutPolicies.xhtml)
8+
content/browser/aboutPolicies.js (content/aboutPolicies.js)

browser/components/enterprisepolicies/moz.build

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,5 @@ if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
3232
]
3333

3434
FINAL_LIBRARY = 'browsercomps'
35+
36+
JAR_MANIFESTS += ['jar.mn']

0 commit comments

Comments
 (0)