зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1493446 - Create a skeleton of the new internal settings HTML page. r=paolo,bgrins
Differential Revision: https://phabricator.services.mozilla.com/D6573 --HG-- extra : rebase_source : a137caec34a24664d7988924a72f6f009311ff84 extra : amend_source : e335d7fc75ea389ca3233b0d2d30b118e855473e
This commit is contained in:
Родитель
077c17e03e
Коммит
102c9d9f50
|
@ -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
|
||||
|
|
|
@ -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 */
|
|
@ -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>
|
|
@ -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 */
|
|
@ -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)
|
|
@ -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']
|
|
@ -0,0 +1,7 @@
|
|||
"use strict";
|
||||
|
||||
module.exports = {
|
||||
"extends": [
|
||||
"plugin:mozilla/browser-test",
|
||||
],
|
||||
};
|
|
@ -0,0 +1,3 @@
|
|||
[DEFAULT]
|
||||
|
||||
[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");
|
||||
});
|
||||
});
|
||||
});
|
|
@ -59,7 +59,10 @@ DIRS += [
|
|||
DIRS += ['build']
|
||||
|
||||
if CONFIG['NIGHTLY_BUILD']:
|
||||
DIRS += ['payments']
|
||||
DIRS += [
|
||||
'aboutconfig',
|
||||
'payments',
|
||||
]
|
||||
|
||||
XPIDL_SOURCES += [
|
||||
'nsIBrowserHandler.idl',
|
||||
|
|
Загрузка…
Ссылка в новой задаче