Bug 1444926 - Move devtools/shim to devtools/startup;r=ochameau
MozReview-Commit-ID: K9WuJuTdYHS --HG-- rename : devtools/shim/DevToolsShim.jsm => devtools/startup/DevToolsShim.jsm rename : devtools/shim/aboutdebugging-registration.js => devtools/startup/aboutdebugging-registration.js rename : devtools/shim/aboutdebugging.manifest => devtools/startup/aboutdebugging.manifest rename : devtools/shim/aboutdevtools/aboutdevtools-registration.js => devtools/startup/aboutdevtools/aboutdevtools-registration.js rename : devtools/shim/aboutdevtools/aboutdevtools.css => devtools/startup/aboutdevtools/aboutdevtools.css rename : devtools/shim/aboutdevtools/aboutdevtools.js => devtools/startup/aboutdevtools/aboutdevtools.js rename : devtools/shim/aboutdevtools/aboutdevtools.manifest => devtools/startup/aboutdevtools/aboutdevtools.manifest rename : devtools/shim/aboutdevtools/aboutdevtools.xhtml => devtools/startup/aboutdevtools/aboutdevtools.xhtml rename : devtools/shim/aboutdevtools/images/dev-edition-logo.svg => devtools/startup/aboutdevtools/images/dev-edition-logo.svg rename : devtools/shim/aboutdevtools/images/external-link.svg => devtools/startup/aboutdevtools/images/external-link.svg rename : devtools/shim/aboutdevtools/images/feature-console.svg => devtools/startup/aboutdevtools/images/feature-console.svg rename : devtools/shim/aboutdevtools/images/feature-debugger.svg => devtools/startup/aboutdevtools/images/feature-debugger.svg rename : devtools/shim/aboutdevtools/images/feature-inspector.svg => devtools/startup/aboutdevtools/images/feature-inspector.svg rename : devtools/shim/aboutdevtools/images/feature-memory.svg => devtools/startup/aboutdevtools/images/feature-memory.svg rename : devtools/shim/aboutdevtools/images/feature-network.svg => devtools/startup/aboutdevtools/images/feature-network.svg rename : devtools/shim/aboutdevtools/images/feature-performance.svg => devtools/startup/aboutdevtools/images/feature-performance.svg rename : devtools/shim/aboutdevtools/images/feature-responsive.svg => devtools/startup/aboutdevtools/images/feature-responsive.svg rename : devtools/shim/aboutdevtools/images/feature-storage.svg => devtools/startup/aboutdevtools/images/feature-storage.svg rename : devtools/shim/aboutdevtools/images/feature-visualediting.svg => devtools/startup/aboutdevtools/images/feature-visualediting.svg rename : devtools/shim/aboutdevtools/images/otter.svg => devtools/startup/aboutdevtools/images/otter.svg rename : devtools/shim/aboutdevtools/moz.build => devtools/startup/aboutdevtools/moz.build rename : devtools/shim/aboutdevtools/subscribe.css => devtools/startup/aboutdevtools/subscribe.css rename : devtools/shim/aboutdevtools/subscribe.js => devtools/startup/aboutdevtools/subscribe.js rename : devtools/shim/aboutdevtools/test/.eslintrc.js => devtools/startup/aboutdevtools/test/.eslintrc.js rename : devtools/shim/aboutdevtools/test/browser.ini => devtools/startup/aboutdevtools/test/browser.ini rename : devtools/shim/aboutdevtools/test/browser_aboutdevtools_closes_page.js => devtools/startup/aboutdevtools/test/browser_aboutdevtools_closes_page.js rename : devtools/shim/aboutdevtools/test/browser_aboutdevtools_enables_devtools.js => devtools/startup/aboutdevtools/test/browser_aboutdevtools_enables_devtools.js rename : devtools/shim/aboutdevtools/test/browser_aboutdevtools_focus_owner_tab.js => devtools/startup/aboutdevtools/test/browser_aboutdevtools_focus_owner_tab.js rename : devtools/shim/aboutdevtools/test/browser_aboutdevtools_reuse_existing.js => devtools/startup/aboutdevtools/test/browser_aboutdevtools_reuse_existing.js rename : devtools/shim/aboutdevtools/test/head.js => devtools/startup/aboutdevtools/test/head.js rename : devtools/shim/aboutdevtoolstoolbox-registration.js => devtools/startup/aboutdevtoolstoolbox-registration.js rename : devtools/shim/aboutdevtoolstoolbox.manifest => devtools/startup/aboutdevtoolstoolbox.manifest rename : devtools/shim/devtools-startup-prefs.js => devtools/startup/devtools-startup-prefs.js rename : devtools/shim/devtools-startup.js => devtools/startup/devtools-startup.js rename : devtools/shim/devtools-startup.manifest => devtools/startup/devtools-startup.manifest rename : devtools/shim/jar.mn => devtools/startup/jar.mn rename : devtools/shim/locales/en-US/aboutdevtools.dtd => devtools/startup/locales/en-US/aboutdevtools.dtd rename : devtools/shim/locales/en-US/aboutdevtools.properties => devtools/startup/locales/en-US/aboutdevtools.properties rename : devtools/shim/locales/en-US/key-shortcuts.properties => devtools/startup/locales/en-US/key-shortcuts.properties rename : devtools/shim/locales/en-US/startup.properties => devtools/startup/locales/en-US/startup.properties rename : devtools/shim/locales/jar.mn => devtools/startup/locales/jar.mn rename : devtools/shim/locales/moz.build => devtools/startup/locales/moz.build rename : devtools/shim/moz.build => devtools/startup/moz.build rename : devtools/shim/tests/browser/.eslintrc.js => devtools/startup/tests/browser/.eslintrc.js rename : devtools/shim/tests/browser/browser.ini => devtools/startup/tests/browser/browser.ini rename : devtools/shim/tests/browser/browser_shim_disable_devtools.js => devtools/startup/tests/browser/browser_shim_disable_devtools.js rename : devtools/shim/tests/unit/.eslintrc.js => devtools/startup/tests/unit/.eslintrc.js rename : devtools/shim/tests/unit/test_devtools_shim.js => devtools/startup/tests/unit/test_devtools_shim.js rename : devtools/shim/tests/unit/xpcshell.ini => devtools/startup/tests/unit/xpcshell.ini extra : rebase_source : 7867a5b103d01dc936091a71deeaf526e7f0e47a
|
@ -156,7 +156,7 @@ devtools/shared/webconsole/test/test_*.html
|
|||
|
||||
# Ignore devtools preferences files
|
||||
devtools/client/preferences/**
|
||||
devtools/shim/devtools-startup-prefs.js
|
||||
devtools/startup/devtools-startup-prefs.js
|
||||
|
||||
# Ignore devtools third-party libs
|
||||
devtools/shared/jsbeautify/*
|
||||
|
|
|
@ -15,7 +15,7 @@ XPCOMUtils.defineLazyModuleGetters(this, {
|
|||
LoginManagerContextMenu: "resource://gre/modules/LoginManagerContextMenu.jsm",
|
||||
WebNavigationFrames: "resource://gre/modules/WebNavigationFrames.jsm",
|
||||
ContextualIdentityService: "resource://gre/modules/ContextualIdentityService.jsm",
|
||||
DevToolsShim: "chrome://devtools-shim/content/DevToolsShim.jsm",
|
||||
DevToolsShim: "chrome://devtools-startup/content/DevToolsShim.jsm",
|
||||
NetUtil: "resource://gre/modules/NetUtil.jsm",
|
||||
});
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
*/
|
||||
|
||||
ChromeUtils.defineModuleGetter(this, "DevToolsShim",
|
||||
"chrome://devtools-shim/content/DevToolsShim.jsm");
|
||||
"chrome://devtools-startup/content/DevToolsShim.jsm");
|
||||
|
||||
ChromeUtils.import("resource://gre/modules/ExtensionParent.jsm");
|
||||
|
||||
|
|
|
@ -165,7 +165,7 @@ XPCOMUtils.defineLazyServiceGetters(this, {
|
|||
XPCOMUtils.defineLazyModuleGetters(this, {
|
||||
AppConstants: "resource://gre/modules/AppConstants.jsm",
|
||||
AsyncShutdown: "resource://gre/modules/AsyncShutdown.jsm",
|
||||
DevToolsShim: "chrome://devtools-shim/content/DevToolsShim.jsm",
|
||||
DevToolsShim: "chrome://devtools-startup/content/DevToolsShim.jsm",
|
||||
GlobalState: "resource:///modules/sessionstore/GlobalState.jsm",
|
||||
PrivacyFilter: "resource:///modules/sessionstore/PrivacyFilter.jsm",
|
||||
PromiseUtils: "resource://gre/modules/PromiseUtils.jsm",
|
||||
|
|
|
@ -614,8 +614,8 @@
|
|||
@RESPATH@/browser/@PREF_DIR@/webide-prefs.js
|
||||
|
||||
; [DevTools Shim Files]
|
||||
@RESPATH@/browser/chrome/devtools-shim@JAREXT@
|
||||
@RESPATH@/browser/chrome/devtools-shim.manifest
|
||||
@RESPATH@/browser/chrome/devtools-startup@JAREXT@
|
||||
@RESPATH@/browser/chrome/devtools-startup.manifest
|
||||
@RESPATH@/browser/@PREF_DIR@/devtools-startup-prefs.js
|
||||
|
||||
; DevTools
|
||||
|
|
|
@ -83,7 +83,7 @@ ifneq '$(or $(MOZ_DEV_EDITION),$(NIGHTLY_BUILD))' ''
|
|||
@$(MAKE) -C ../extensions/webcompat-reporter/locales AB_CD=$* XPI_NAME=locale-$*
|
||||
endif
|
||||
@$(MAKE) -C ../../devtools/client/locales AB_CD=$* XPI_NAME=locale-$* XPI_ROOT_APPID='$(XPI_ROOT_APPID)'
|
||||
@$(MAKE) -C ../../devtools/shim/locales AB_CD=$* XPI_NAME=locale-$* XPI_ROOT_APPID='$(XPI_ROOT_APPID)'
|
||||
@$(MAKE) -C ../../devtools/startup/locales AB_CD=$* XPI_NAME=locale-$* XPI_ROOT_APPID='$(XPI_ROOT_APPID)'
|
||||
@$(MAKE) -B searchplugins AB_CD=$* XPI_NAME=locale-$*
|
||||
@$(MAKE) libs AB_CD=$* XPI_NAME=locale-$* PREF_DIR=$(PREF_DIR)
|
||||
@$(MAKE) multilocale.txt-$* AB_CD=$* XPI_NAME=locale-$*
|
||||
|
@ -104,7 +104,7 @@ ifndef RELEASE_OR_BETA
|
|||
@$(MAKE) -C ../extensions/presentation/locale chrome AB_CD=$*
|
||||
endif
|
||||
@$(MAKE) -C ../../devtools/client/locales chrome AB_CD=$*
|
||||
@$(MAKE) -C ../../devtools/shim/locales chrome AB_CD=$*
|
||||
@$(MAKE) -C ../../devtools/startup/locales chrome AB_CD=$*
|
||||
@$(MAKE) chrome AB_CD=$*
|
||||
@$(MAKE) -C $(DEPTH)/$(MOZ_BRANDING_DIRECTORY)/locales chrome AB_CD=$*
|
||||
ifdef NIGHTLY_BUILD
|
||||
|
|
|
@ -6,7 +6,7 @@ def test(mod, path, entity = None):
|
|||
import re
|
||||
# ignore anything but Firefox
|
||||
if mod not in ("netwerk", "dom", "toolkit", "security/manager",
|
||||
"devtools/client", "devtools/shared", "devtools/shim",
|
||||
"devtools/client", "devtools/shared", "devtools/startup",
|
||||
"browser",
|
||||
"browser/extensions/formautofill",
|
||||
"browser/extensions/onboarding",
|
||||
|
|
|
@ -11,7 +11,7 @@ dirs = browser
|
|||
other-licenses/branding/firefox
|
||||
browser/branding/official
|
||||
devtools/client
|
||||
devtools/shim
|
||||
devtools/startup
|
||||
browser/extensions/formautofill
|
||||
browser/extensions/onboarding
|
||||
browser/extensions/webcompat-reporter
|
||||
|
|
|
@ -145,8 +145,8 @@ locales = [
|
|||
path = "devtools/client/locales/l10n.toml"
|
||||
|
||||
[[paths]]
|
||||
reference = "devtools/shim/locales/en-US/**"
|
||||
l10n = "{l}devtools/shim/**"
|
||||
reference = "devtools/startup/locales/en-US/**"
|
||||
l10n = "{l}devtools/startup/**"
|
||||
|
||||
# Filters
|
||||
# The filters below are evaluated one after the other, in the given order.
|
||||
|
|
|
@ -34,7 +34,7 @@ loader.lazyImporter(this, "ScratchpadManager", "resource://devtools/client/scrat
|
|||
const {MultiLocalizationHelper} = require("devtools/shared/l10n");
|
||||
const L10N = new MultiLocalizationHelper(
|
||||
"devtools/client/locales/startup.properties",
|
||||
"devtools/shim/locales/key-shortcuts.properties"
|
||||
"devtools/startup/locales/key-shortcuts.properties"
|
||||
);
|
||||
|
||||
var Tools = {};
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
const {Cu} = require("chrome");
|
||||
const Services = require("Services");
|
||||
|
||||
const {DevToolsShim} = require("chrome://devtools-shim/content/DevToolsShim.jsm");
|
||||
const {DevToolsShim} = require("chrome://devtools-startup/content/DevToolsShim.jsm");
|
||||
|
||||
// Load gDevToolsBrowser toolbox lazily as they need gDevTools to be fully initialized
|
||||
loader.lazyRequireGetter(this, "TargetFactory", "devtools/client/framework/target", true);
|
||||
|
|
|
@ -92,7 +92,7 @@ let webpackConfig = {
|
|||
// Locales need to be explicitly mapped to the en-US subfolder
|
||||
"devtools/client/locales": path.join(__dirname, "../../client/locales/en-US"),
|
||||
"devtools/shared/locales": path.join(__dirname, "../../shared/locales/en-US"),
|
||||
"devtools/shim/locales": path.join(__dirname, "../../shared/locales/en-US"),
|
||||
"devtools/startup/locales": path.join(__dirname, "../../shared/locales/en-US"),
|
||||
"toolkit/locales": path.join(__dirname, "../../../toolkit/locales/en-US"),
|
||||
|
||||
// Unless a path explicitly needs to be rewritten or shimmed, all devtools paths can
|
||||
|
|
|
@ -106,7 +106,7 @@ webpackConfig.resolve = {
|
|||
"toolkit/locales": path.join(__dirname, "../../../toolkit/locales/en-US"),
|
||||
"devtools/client/locales": path.join(__dirname, "../../client/locales/en-US"),
|
||||
"devtools/shared/locales": path.join(__dirname, "../../shared/locales/en-US"),
|
||||
"devtools/shim/locales": path.join(__dirname, "../../shared/locales/en-US"),
|
||||
"devtools/startup/locales": path.join(__dirname, "../../shared/locales/en-US"),
|
||||
|
||||
// Unless a path explicitly needs to be rewritten or shimmed, all devtools paths can
|
||||
// be mapped to ../../
|
||||
|
|
|
@ -72,12 +72,12 @@ To create a new preference, it should be assigned a default value. Default prefe
|
|||
defined in preferences files such as:
|
||||
- devtools/client/preferences/devtools.js
|
||||
- devtools/client/preferences/debugger.js
|
||||
- devtools/shim/devtools-startup-prefs.js
|
||||
- devtools/startup/devtools-startup-prefs.js
|
||||
|
||||
Most new preferences should go in devtools/client/preferences/devtools.js. Debugger
|
||||
specific preferences should go in devtools/client/preferences/debugger.js. Finally if a
|
||||
preference needs to be available very early during the Firefox startup sequence, it should
|
||||
go in devtools/shim/devtools-startup-prefs.js.
|
||||
go in devtools/startup/devtools-startup-prefs.js.
|
||||
|
||||
### Projects using Launchpad
|
||||
|
||||
|
|
|
@ -13,11 +13,11 @@ if CONFIG['MOZ_DEVTOOLS'] == 'all':
|
|||
]
|
||||
|
||||
# `addon` is a special build mode to strip everything except binary components
|
||||
# and shim modules that are going to stay in Firefox once DevTools ship as an
|
||||
# and startup modules that are going to stay in Firefox once DevTools ship as an
|
||||
# add-on.
|
||||
# `platform` contains all native components
|
||||
DIRS += [
|
||||
'shim',
|
||||
'startup',
|
||||
'platform',
|
||||
]
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ BuiltinProvider.prototype = {
|
|||
// used in the source tree.
|
||||
"devtools/client/locales": "chrome://devtools/locale",
|
||||
"devtools/shared/locales": "chrome://devtools-shared/locale",
|
||||
"devtools/shim/locales": "chrome://devtools-shim/locale",
|
||||
"devtools/startup/locales": "chrome://devtools-startup/locale",
|
||||
"toolkit/locales": "chrome://global/locale",
|
||||
};
|
||||
// When creating a Loader invisible to the Debugger, we have to ensure
|
||||
|
|
|
@ -30,7 +30,7 @@ const reqShared = require.context("raw!devtools/shared/locales/",
|
|||
true, /^.*\.properties$/);
|
||||
const reqClient = require.context("raw!devtools/client/locales/",
|
||||
true, /^.*\.properties$/);
|
||||
const reqShim = require.context("raw!devtools/shim/locales/",
|
||||
const reqStartup = require.context("raw!devtools/startup/locales/",
|
||||
true, /^.*\.properties$/);
|
||||
const reqGlobal = require.context("raw!toolkit/locales/",
|
||||
true, /^.*\.properties$/);
|
||||
|
@ -74,8 +74,8 @@ function getProperties(url) {
|
|||
reqFn = reqGlobal;
|
||||
} else if (/^devtools\/shared/.test(url)) {
|
||||
reqFn = reqShared;
|
||||
} else if (/^devtools\/shim/.test(url)) {
|
||||
reqFn = reqShim;
|
||||
} else if (/^devtools\/startup/.test(url)) {
|
||||
reqFn = reqStartup;
|
||||
} else {
|
||||
reqFn = reqClient;
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ const { nsIAboutModule } = Ci;
|
|||
function AboutDevtools() {}
|
||||
|
||||
AboutDevtools.prototype = {
|
||||
uri: Services.io.newURI("chrome://devtools-shim/content/aboutdevtools/aboutdevtools.xhtml"),
|
||||
uri: Services.io.newURI("chrome://devtools-startup/content/aboutdevtools/aboutdevtools.xhtml"),
|
||||
classDescription: "about:devtools",
|
||||
classID: Components.ID("3a16d383-92bd-4c24-ac10-0e2bd66883ab"),
|
||||
contractID: "@mozilla.org/network/protocol/about;1?what=devtools",
|
|
@ -28,10 +28,10 @@ const GA_PARAMETERS = [
|
|||
["utm_medium", "onboarding"],
|
||||
];
|
||||
|
||||
const ABOUTDEVTOOLS_STRINGS = "chrome://devtools-shim/locale/aboutdevtools.properties";
|
||||
const ABOUTDEVTOOLS_STRINGS = "chrome://devtools-startup/locale/aboutdevtools.properties";
|
||||
const aboutDevtoolsBundle = Services.strings.createBundle(ABOUTDEVTOOLS_STRINGS);
|
||||
|
||||
const KEY_SHORTCUTS_STRINGS = "chrome://devtools-shim/locale/key-shortcuts.properties";
|
||||
const KEY_SHORTCUTS_STRINGS = "chrome://devtools-startup/locale/key-shortcuts.properties";
|
||||
const keyShortcutsBundle = Services.strings.createBundle(KEY_SHORTCUTS_STRINGS);
|
||||
|
||||
// URL constructor doesn't support about: scheme,
|
||||
|
@ -86,47 +86,47 @@ function updatePage() {
|
|||
*/
|
||||
const features = [
|
||||
{
|
||||
icon: "chrome://devtools-shim/content/aboutdevtools/images/feature-inspector.svg",
|
||||
icon: "chrome://devtools-startup/content/aboutdevtools/images/feature-inspector.svg",
|
||||
title: "features.inspector.title",
|
||||
desc: "features.inspector.desc",
|
||||
link: "https://developer.mozilla.org/docs/Tools/Page_Inspector",
|
||||
}, {
|
||||
icon: "chrome://devtools-shim/content/aboutdevtools/images/feature-console.svg",
|
||||
icon: "chrome://devtools-startup/content/aboutdevtools/images/feature-console.svg",
|
||||
title: "features.console.title",
|
||||
desc: "features.console.desc",
|
||||
link: "https://developer.mozilla.org/docs/Tools/Web_Console",
|
||||
}, {
|
||||
icon: "chrome://devtools-shim/content/aboutdevtools/images/feature-debugger.svg",
|
||||
icon: "chrome://devtools-startup/content/aboutdevtools/images/feature-debugger.svg",
|
||||
title: "features.debugger.title",
|
||||
desc: "features.debugger.desc",
|
||||
link: "https://developer.mozilla.org/docs/Tools/Debugger",
|
||||
}, {
|
||||
icon: "chrome://devtools-shim/content/aboutdevtools/images/feature-network.svg",
|
||||
icon: "chrome://devtools-startup/content/aboutdevtools/images/feature-network.svg",
|
||||
title: "features.network.title",
|
||||
desc: "features.network.desc",
|
||||
link: "https://developer.mozilla.org/docs/Tools/Network_Monitor",
|
||||
}, {
|
||||
icon: "chrome://devtools-shim/content/aboutdevtools/images/feature-storage.svg",
|
||||
icon: "chrome://devtools-startup/content/aboutdevtools/images/feature-storage.svg",
|
||||
title: "features.storage.title",
|
||||
desc: "features.storage.desc",
|
||||
link: "https://developer.mozilla.org/docs/Tools/Storage_Inspector",
|
||||
}, {
|
||||
icon: "chrome://devtools-shim/content/aboutdevtools/images/feature-responsive.svg",
|
||||
icon: "chrome://devtools-startup/content/aboutdevtools/images/feature-responsive.svg",
|
||||
title: "features.responsive.title",
|
||||
desc: "features.responsive.desc",
|
||||
link: "https://developer.mozilla.org/docs/Tools/Responsive_Design_Mode",
|
||||
}, {
|
||||
icon: "chrome://devtools-shim/content/aboutdevtools/images/feature-visualediting.svg",
|
||||
icon: "chrome://devtools-startup/content/aboutdevtools/images/feature-visualediting.svg",
|
||||
title: "features.visualediting.title",
|
||||
desc: "features.visualediting.desc",
|
||||
link: "https://developer.mozilla.org/docs/Tools/Style_Editor",
|
||||
}, {
|
||||
icon: "chrome://devtools-shim/content/aboutdevtools/images/feature-performance.svg",
|
||||
icon: "chrome://devtools-startup/content/aboutdevtools/images/feature-performance.svg",
|
||||
title: "features.performance.title",
|
||||
desc: "features.performance.desc",
|
||||
link: "https://developer.mozilla.org/docs/Tools/Performance",
|
||||
}, {
|
||||
icon: "chrome://devtools-shim/content/aboutdevtools/images/feature-memory.svg",
|
||||
icon: "chrome://devtools-startup/content/aboutdevtools/images/feature-memory.svg",
|
||||
title: "features.memory.title",
|
||||
desc: "features.memory.desc",
|
||||
link: "https://developer.mozilla.org/docs/Tools/Memory",
|
|
@ -5,7 +5,7 @@
|
|||
<!DOCTYPE html [
|
||||
<!ENTITY % htmlDTD PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> %htmlDTD;
|
||||
<!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd"> %globalDTD;
|
||||
<!ENTITY % aboutdevtoolsDTD SYSTEM "chrome://devtools-shim/locale/aboutdevtools.dtd"> %aboutdevtoolsDTD;
|
||||
<!ENTITY % aboutdevtoolsDTD SYSTEM "chrome://devtools-startup/locale/aboutdevtools.dtd"> %aboutdevtoolsDTD;
|
||||
]>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" dir="&locale.dir;">
|
||||
|
@ -13,10 +13,10 @@
|
|||
<title>&aboutDevtools.headTitle;</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>a
|
||||
<link rel="stylesheet" href="chrome://global/skin/in-content/common.css" type="text/css"/>
|
||||
<link rel="stylesheet" href="chrome://devtools-shim/content/aboutdevtools/aboutdevtools.css" type="text/css"/>
|
||||
<link rel="stylesheet" href="chrome://devtools-shim/content/aboutdevtools/subscribe.css" type="text/css"/>
|
||||
<script type="application/javascript" src="chrome://devtools-shim/content/aboutdevtools/aboutdevtools.js"></script>
|
||||
<script type="application/javascript" src="chrome://devtools-shim/content/aboutdevtools/subscribe.js"></script>
|
||||
<link rel="stylesheet" href="chrome://devtools-startup/content/aboutdevtools/aboutdevtools.css" type="text/css"/>
|
||||
<link rel="stylesheet" href="chrome://devtools-startup/content/aboutdevtools/subscribe.css" type="text/css"/>
|
||||
<script type="application/javascript" src="chrome://devtools-startup/content/aboutdevtools/aboutdevtools.js"></script>
|
||||
<script type="application/javascript" src="chrome://devtools-startup/content/aboutdevtools/subscribe.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="install-page" class="wrapper" hidden="true">
|
||||
|
@ -89,7 +89,7 @@
|
|||
|
||||
<footer>
|
||||
<img class="dev-edition-logo"
|
||||
src="chrome://devtools-shim/content/aboutdevtools/images/dev-edition-logo.svg"
|
||||
src="chrome://devtools-startup/content/aboutdevtools/images/dev-edition-logo.svg"
|
||||
alt="Firefox Developer Edition logo"/>
|
||||
<div class="footer-message">
|
||||
<h1 class="footer-message-title">&aboutDevtools.footer.title;</h1>
|
До Ширина: | Высота: | Размер: 76 KiB После Ширина: | Высота: | Размер: 76 KiB |
До Ширина: | Высота: | Размер: 631 B После Ширина: | Высота: | Размер: 631 B |
До Ширина: | Высота: | Размер: 3.6 KiB После Ширина: | Высота: | Размер: 3.6 KiB |
До Ширина: | Высота: | Размер: 3.4 KiB После Ширина: | Высота: | Размер: 3.4 KiB |
До Ширина: | Высота: | Размер: 3.8 KiB После Ширина: | Высота: | Размер: 3.8 KiB |
До Ширина: | Высота: | Размер: 3.6 KiB После Ширина: | Высота: | Размер: 3.6 KiB |
До Ширина: | Высота: | Размер: 2.5 KiB После Ширина: | Высота: | Размер: 2.5 KiB |
До Ширина: | Высота: | Размер: 5.0 KiB После Ширина: | Высота: | Размер: 5.0 KiB |
До Ширина: | Высота: | Размер: 5.0 KiB После Ширина: | Высота: | Размер: 5.0 KiB |
До Ширина: | Высота: | Размер: 3.0 KiB После Ширина: | Высота: | Размер: 3.0 KiB |
До Ширина: | Высота: | Размер: 2.8 KiB После Ширина: | Высота: | Размер: 2.8 KiB |
До Ширина: | Высота: | Размер: 25 KiB После Ширина: | Высота: | Размер: 25 KiB |
|
@ -15,7 +15,7 @@ window.addEventListener("load", function() {
|
|||
// Timeout for the subscribe XHR.
|
||||
const REQUEST_TIMEOUT = 5000;
|
||||
|
||||
const ABOUTDEVTOOLS_STRINGS = "chrome://devtools-shim/locale/aboutdevtools.properties";
|
||||
const ABOUTDEVTOOLS_STRINGS = "chrome://devtools-startup/locale/aboutdevtools.properties";
|
||||
const aboutDevtoolsBundle = Services.strings.createBundle(ABOUTDEVTOOLS_STRINGS);
|
||||
|
||||
let emailInput = document.getElementById("email");
|
|
@ -45,12 +45,12 @@ ChromeUtils.defineModuleGetter(this, "CustomizableWidgets",
|
|||
"resource:///modules/CustomizableWidgets.jsm");
|
||||
|
||||
XPCOMUtils.defineLazyGetter(this, "StartupBundle", function() {
|
||||
const url = "chrome://devtools-shim/locale/startup.properties";
|
||||
const url = "chrome://devtools-startup/locale/startup.properties";
|
||||
return Services.strings.createBundle(url);
|
||||
});
|
||||
|
||||
XPCOMUtils.defineLazyGetter(this, "KeyShortcutsBundle", function() {
|
||||
const url = "chrome://devtools-shim/locale/key-shortcuts.properties";
|
||||
const url = "chrome://devtools-startup/locale/key-shortcuts.properties";
|
||||
return Services.strings.createBundle(url);
|
||||
});
|
||||
|
|
@ -2,8 +2,8 @@
|
|||
# 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/.
|
||||
|
||||
devtools-shim.jar:
|
||||
% content devtools-shim %content/
|
||||
devtools-startup.jar:
|
||||
% content devtools-startup %content/
|
||||
content/aboutdevtools/aboutdevtools.xhtml (aboutdevtools/aboutdevtools.xhtml)
|
||||
content/aboutdevtools/aboutdevtools.css (aboutdevtools/aboutdevtools.css)
|
||||
content/aboutdevtools/aboutdevtools.js (aboutdevtools/aboutdevtools.js)
|
|
@ -4,5 +4,5 @@
|
|||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
@AB_CD@.jar:
|
||||
% locale devtools-shim @AB_CD@ %locale/@AB_CD@/devtools/shim/
|
||||
locale/@AB_CD@/devtools/shim/ (%*)
|
||||
% locale devtools-startup @AB_CD@ %locale/@AB_CD@/devtools/startup/
|
||||
locale/@AB_CD@/devtools/startup/ (%*)
|
|
@ -5,7 +5,7 @@
|
|||
"use strict";
|
||||
|
||||
const { DevToolsShim } =
|
||||
ChromeUtils.import("chrome://devtools-shim/content/DevToolsShim.jsm", {});
|
||||
ChromeUtils.import("chrome://devtools-startup/content/DevToolsShim.jsm", {});
|
||||
const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm", {});
|
||||
|
||||
// Test the DevToolsShim
|
|
@ -12,7 +12,7 @@ ChromeUtils.defineModuleGetter(this, "ExtensionParent",
|
|||
ChromeUtils.defineModuleGetter(this, "Services",
|
||||
"resource://gre/modules/Services.jsm");
|
||||
ChromeUtils.defineModuleGetter(this, "DevToolsShim",
|
||||
"chrome://devtools-shim/content/DevToolsShim.jsm");
|
||||
"chrome://devtools-startup/content/DevToolsShim.jsm");
|
||||
|
||||
this.runtime = class extends ExtensionAPI {
|
||||
getAPI(context) {
|
||||
|
|