зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1760991 - add 'my firefox' shell page, r=sclements
Differential Revision: https://phabricator.services.mozilla.com/D142050
This commit is contained in:
Родитель
69827cd1f6
Коммит
2582c25dcf
|
@ -632,6 +632,7 @@ async function gLazyFindCommand(cmd, ...args) {
|
|||
|
||||
var gPageIcons = {
|
||||
"about:home": "chrome://branding/content/icon32.png",
|
||||
"about:myfirefox": "chrome://branding/content/icon32.png",
|
||||
"about:newtab": "chrome://branding/content/icon32.png",
|
||||
"about:welcome": "chrome://branding/content/icon32.png",
|
||||
"about:privatebrowsing": "chrome://browser/skin/privatebrowsing/favicon.svg",
|
||||
|
@ -639,8 +640,9 @@ var gPageIcons = {
|
|||
|
||||
var gInitialPages = [
|
||||
"about:blank",
|
||||
"about:newtab",
|
||||
"about:home",
|
||||
"about:myfirefox",
|
||||
"about:newtab",
|
||||
"about:privatebrowsing",
|
||||
"about:welcomeback",
|
||||
"about:sessionrestore",
|
||||
|
|
|
@ -73,9 +73,9 @@ static const RedirEntry kRedirMap[] = {
|
|||
nsIAboutModule::URI_CAN_LOAD_IN_PRIVILEGEDABOUT_PROCESS |
|
||||
nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT |
|
||||
nsIAboutModule::IS_SECURE_CHROME_UI},
|
||||
{"tabcrashed", "chrome://browser/content/aboutTabCrashed.xhtml",
|
||||
nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT |
|
||||
nsIAboutModule::ALLOW_SCRIPT | nsIAboutModule::HIDE_FROM_ABOUTABOUT},
|
||||
{"myfirefox", "chrome://browser/content/myfirefox.html",
|
||||
nsIAboutModule::ALLOW_SCRIPT | nsIAboutModule::IS_SECURE_CHROME_UI |
|
||||
nsIAboutModule::HIDE_FROM_ABOUTABOUT},
|
||||
{"policies", "chrome://browser/content/policies/aboutPolicies.html",
|
||||
nsIAboutModule::ALLOW_SCRIPT | nsIAboutModule::IS_SECURE_CHROME_UI},
|
||||
{"privatebrowsing", "chrome://browser/content/aboutPrivateBrowsing.html",
|
||||
|
@ -94,6 +94,9 @@ static const RedirEntry kRedirMap[] = {
|
|||
{"sessionrestore", "chrome://browser/content/aboutSessionRestore.xhtml",
|
||||
nsIAboutModule::ALLOW_SCRIPT | nsIAboutModule::HIDE_FROM_ABOUTABOUT |
|
||||
nsIAboutModule::IS_SECURE_CHROME_UI},
|
||||
{"tabcrashed", "chrome://browser/content/aboutTabCrashed.xhtml",
|
||||
nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT |
|
||||
nsIAboutModule::ALLOW_SCRIPT | nsIAboutModule::HIDE_FROM_ABOUTABOUT},
|
||||
{"welcomeback", "chrome://browser/content/aboutWelcomeBack.xhtml",
|
||||
nsIAboutModule::ALLOW_SCRIPT | nsIAboutModule::HIDE_FROM_ABOUTABOUT |
|
||||
nsIAboutModule::IS_SECURE_CHROME_UI},
|
||||
|
|
|
@ -12,6 +12,7 @@ pages = [
|
|||
'home',
|
||||
'logins',
|
||||
'loginsimportreport',
|
||||
'myfirefox',
|
||||
'newtab',
|
||||
'ion',
|
||||
'pocket-home',
|
||||
|
|
|
@ -62,6 +62,10 @@ DIRS += [
|
|||
|
||||
DIRS += ["build"]
|
||||
|
||||
if CONFIG["NIGHTLY_BUILD"]:
|
||||
DIRS += ["myfirefox"]
|
||||
|
||||
|
||||
if CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa":
|
||||
DIRS += ["touchbar"]
|
||||
elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows":
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
# 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/myfirefox.html
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
# -*- 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", "General")
|
|
@ -0,0 +1,16 @@
|
|||
<!-- 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:; object-src 'none'">
|
||||
<meta name="color-scheme" content="light dark">
|
||||
<title>This space intentionally left blank</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
Загрузка…
Ссылка в новой задаче