Bug 1493446 - Create a skeleton of the new internal settings HTML page. r=bgrins,paolo
☠☠ backed out by 6f52e3faa07a ☠ ☠
authorVincent Cote <vincent.cote@uleth.ca>
Fri, 05 Oct 2018 10:41:49 +0000
changeset 495529 e994da668be67893a6decb206427bb916bd30a25
parent 495522 af9e675d4b36fae47211dfec929593af3ae48e9a
child 495530 6f52e3faa07ac606474f19de1422fc8fd305f33c
push id9984
push userffxbld-merge
push dateMon, 15 Oct 2018 21:07:35 +0000
treeherdermozilla-beta@183d27ea8570 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbgrins, paolo
bugs1493446
milestone64.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1493446 - Create a skeleton of the new internal settings HTML page. r=bgrins,paolo Differential Revision: https://phabricator.services.mozilla.com/D6573
browser/components/aboutconfig/content/aboutconfig.css
browser/components/aboutconfig/content/aboutconfig.html
browser/components/aboutconfig/content/aboutconfig.js
browser/components/aboutconfig/jar.mn
browser/components/aboutconfig/moz.build
browser/components/aboutconfig/test/browser/browser.ini
browser/components/aboutconfig/test/browser/browser_basic.js
browser/components/moz.build
new file mode 100644
--- /dev/null
+++ b/browser/components/aboutconfig/content/aboutconfig.css
@@ -0,0 +1,3 @@
+/* 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/. */
new file mode 100644
--- /dev/null
+++ b/browser/components/aboutconfig/content/aboutconfig.html
@@ -0,0 +1,20 @@
+<!-- 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">
+    <link rel="stylesheet" media="screen, projection" type="text/css"
+          href="chrome://global/skin/in-content/common.css"/>
+    <link rel="stylesheet" type="text/css" 
+          href="chrome://browser/content/aboutconfig/aboutconfig.css"/>
+    <script type="application/javascript" 
+            src="chrome://browser/content/aboutconfig/aboutconfig.js"></script>
+    <title>about:config</title>
+  </head>
+
+  <body>
+  </body>
+ </html>
new file mode 100644
--- /dev/null
+++ b/browser/components/aboutconfig/content/aboutconfig.js
@@ -0,0 +1,3 @@
+/* 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/. */
new file mode 100644
--- /dev/null
+++ b/browser/components/aboutconfig/jar.mn
@@ -0,0 +1,8 @@
+# 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/aboutconfig/aboutconfig.css          (content/aboutconfig.css)
+   content/browser/aboutconfig/aboutconfig.html         (content/aboutconfig.html)
+   content/browser/aboutconfig/aboutconfig.js           (content/aboutconfig.js)
new file mode 100644
--- /dev/null
+++ b/browser/components/aboutconfig/moz.build
@@ -0,0 +1,9 @@
+# -*- 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/.
+
+BROWSER_CHROME_MANIFESTS += ['test/browser/browser.ini']
+
+JAR_MANIFESTS += ['jar.mn']
new file mode 100644
--- /dev/null
+++ b/browser/components/aboutconfig/test/browser/browser.ini
@@ -0,0 +1,3 @@
+[DEFAULT]
+
+[browser_basic.js]
new file mode 100644
--- /dev/null
+++ b/browser/components/aboutconfig/test/browser/browser_basic.js
@@ -0,0 +1,14 @@
+/* Any copyright is dedicated to the Public Domain.
+ * http://creativecommons.org/publicdomain/zero/1.0/ */
+
+add_task(async function test_load_title() {
+  await BrowserTestUtils.withNewTab({
+    gBrowser,
+    url: "chrome://browser/content/aboutconfig/aboutconfig.html",
+  }, browser => {
+    info("about:config loaded");
+    return ContentTask.spawn(browser, null, () => {
+      Assert.equal(content.document.title, "about:config");
+    });
+  });
+});
--- a/browser/components/moz.build
+++ b/browser/components/moz.build
@@ -54,17 +54,20 @@ DIRS += [
     'uitour',
     'urlbar',
     'translation',
 ]
 
 DIRS += ['build']
 
 if CONFIG['NIGHTLY_BUILD']:
-    DIRS += ['payments']
+    DIRS += [
+        'aboutconfig',
+        'payments',
+    ]
 
 XPIDL_SOURCES += [
     'nsIBrowserHandler.idl',
 ]
 
 XPIDL_MODULE = 'browsercompsbase'
 
 EXTRA_COMPONENTS += [