diff --git a/browser/base/content/test/static/browser_all_files_referenced.js b/browser/base/content/test/static/browser_all_files_referenced.js index a86b60338ab2..db2a97326da6 100644 --- a/browser/base/content/test/static/browser_all_files_referenced.js +++ b/browser/base/content/test/static/browser_all_files_referenced.js @@ -41,6 +41,9 @@ var gExceptionPaths = [ // Exclude all search-plugins because they aren't referenced by filename "resource://search-plugins/", + + // This is only in Nightly, and accessed using a direct chrome URL + "chrome://browser/content/aboutconfig/", ]; // These are not part of the omni.ja file, so we find them only when running diff --git a/browser/components/aboutconfig/content/aboutconfig.css b/browser/components/aboutconfig/content/aboutconfig.css new file mode 100644 index 000000000000..86fb51520d0b --- /dev/null +++ b/browser/components/aboutconfig/content/aboutconfig.css @@ -0,0 +1,5 @@ +/* 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/. */ + +/* aboutconfig.css */ diff --git a/browser/components/aboutconfig/content/aboutconfig.html b/browser/components/aboutconfig/content/aboutconfig.html new file mode 100644 index 000000000000..f81e3758c8be --- /dev/null +++ b/browser/components/aboutconfig/content/aboutconfig.html @@ -0,0 +1,20 @@ + + + + + + + + + + about:config + + + + + diff --git a/browser/components/aboutconfig/content/aboutconfig.js b/browser/components/aboutconfig/content/aboutconfig.js new file mode 100644 index 000000000000..20556794fcca --- /dev/null +++ b/browser/components/aboutconfig/content/aboutconfig.js @@ -0,0 +1,5 @@ +/* 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/. */ + +/* aboutconfig.js */ diff --git a/browser/components/aboutconfig/jar.mn b/browser/components/aboutconfig/jar.mn new file mode 100644 index 000000000000..d029df8cdc3e --- /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) diff --git a/browser/components/aboutconfig/moz.build b/browser/components/aboutconfig/moz.build new file mode 100644 index 000000000000..7ff4b7ef8522 --- /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'] diff --git a/browser/components/aboutconfig/test/browser/.eslintrc.js b/browser/components/aboutconfig/test/browser/.eslintrc.js new file mode 100644 index 000000000000..71818fe6506a --- /dev/null +++ b/browser/components/aboutconfig/test/browser/.eslintrc.js @@ -0,0 +1,7 @@ +"use strict"; + +module.exports = { + "extends": [ + "plugin:mozilla/browser-test", + ], +}; diff --git a/browser/components/aboutconfig/test/browser/browser.ini b/browser/components/aboutconfig/test/browser/browser.ini new file mode 100644 index 000000000000..0765d44c462f --- /dev/null +++ b/browser/components/aboutconfig/test/browser/browser.ini @@ -0,0 +1,3 @@ +[DEFAULT] + +[browser_basic.js] diff --git a/browser/components/aboutconfig/test/browser/browser_basic.js b/browser/components/aboutconfig/test/browser/browser_basic.js new file mode 100644 index 000000000000..2e42cf328f96 --- /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"); + }); + }); +}); diff --git a/browser/components/moz.build b/browser/components/moz.build index 048c45d48414..a5174cbc2822 100644 --- a/browser/components/moz.build +++ b/browser/components/moz.build @@ -59,7 +59,10 @@ DIRS += [ DIRS += ['build'] if CONFIG['NIGHTLY_BUILD']: - DIRS += ['payments'] + DIRS += [ + 'aboutconfig', + 'payments', + ] XPIDL_SOURCES += [ 'nsIBrowserHandler.idl',