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
|
# Ignore devtools preferences files
|
||||||
devtools/client/preferences/**
|
devtools/client/preferences/**
|
||||||
devtools/shim/devtools-startup-prefs.js
|
devtools/startup/devtools-startup-prefs.js
|
||||||
|
|
||||||
# Ignore devtools third-party libs
|
# Ignore devtools third-party libs
|
||||||
devtools/shared/jsbeautify/*
|
devtools/shared/jsbeautify/*
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ XPCOMUtils.defineLazyModuleGetters(this, {
|
||||||
LoginManagerContextMenu: "resource://gre/modules/LoginManagerContextMenu.jsm",
|
LoginManagerContextMenu: "resource://gre/modules/LoginManagerContextMenu.jsm",
|
||||||
WebNavigationFrames: "resource://gre/modules/WebNavigationFrames.jsm",
|
WebNavigationFrames: "resource://gre/modules/WebNavigationFrames.jsm",
|
||||||
ContextualIdentityService: "resource://gre/modules/ContextualIdentityService.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",
|
NetUtil: "resource://gre/modules/NetUtil.jsm",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
ChromeUtils.defineModuleGetter(this, "DevToolsShim",
|
ChromeUtils.defineModuleGetter(this, "DevToolsShim",
|
||||||
"chrome://devtools-shim/content/DevToolsShim.jsm");
|
"chrome://devtools-startup/content/DevToolsShim.jsm");
|
||||||
|
|
||||||
ChromeUtils.import("resource://gre/modules/ExtensionParent.jsm");
|
ChromeUtils.import("resource://gre/modules/ExtensionParent.jsm");
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -165,7 +165,7 @@ XPCOMUtils.defineLazyServiceGetters(this, {
|
||||||
XPCOMUtils.defineLazyModuleGetters(this, {
|
XPCOMUtils.defineLazyModuleGetters(this, {
|
||||||
AppConstants: "resource://gre/modules/AppConstants.jsm",
|
AppConstants: "resource://gre/modules/AppConstants.jsm",
|
||||||
AsyncShutdown: "resource://gre/modules/AsyncShutdown.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",
|
GlobalState: "resource:///modules/sessionstore/GlobalState.jsm",
|
||||||
PrivacyFilter: "resource:///modules/sessionstore/PrivacyFilter.jsm",
|
PrivacyFilter: "resource:///modules/sessionstore/PrivacyFilter.jsm",
|
||||||
PromiseUtils: "resource://gre/modules/PromiseUtils.jsm",
|
PromiseUtils: "resource://gre/modules/PromiseUtils.jsm",
|
||||||
|
|
|
||||||
|
|
@ -614,8 +614,8 @@
|
||||||
@RESPATH@/browser/@PREF_DIR@/webide-prefs.js
|
@RESPATH@/browser/@PREF_DIR@/webide-prefs.js
|
||||||
|
|
||||||
; [DevTools Shim Files]
|
; [DevTools Shim Files]
|
||||||
@RESPATH@/browser/chrome/devtools-shim@JAREXT@
|
@RESPATH@/browser/chrome/devtools-startup@JAREXT@
|
||||||
@RESPATH@/browser/chrome/devtools-shim.manifest
|
@RESPATH@/browser/chrome/devtools-startup.manifest
|
||||||
@RESPATH@/browser/@PREF_DIR@/devtools-startup-prefs.js
|
@RESPATH@/browser/@PREF_DIR@/devtools-startup-prefs.js
|
||||||
|
|
||||||
; DevTools
|
; DevTools
|
||||||
|
|
|
||||||
|
|
@ -83,7 +83,7 @@ ifneq '$(or $(MOZ_DEV_EDITION),$(NIGHTLY_BUILD))' ''
|
||||||
@$(MAKE) -C ../extensions/webcompat-reporter/locales AB_CD=$* XPI_NAME=locale-$*
|
@$(MAKE) -C ../extensions/webcompat-reporter/locales AB_CD=$* XPI_NAME=locale-$*
|
||||||
endif
|
endif
|
||||||
@$(MAKE) -C ../../devtools/client/locales AB_CD=$* XPI_NAME=locale-$* XPI_ROOT_APPID='$(XPI_ROOT_APPID)'
|
@$(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) -B searchplugins AB_CD=$* XPI_NAME=locale-$*
|
||||||
@$(MAKE) libs AB_CD=$* XPI_NAME=locale-$* PREF_DIR=$(PREF_DIR)
|
@$(MAKE) libs AB_CD=$* XPI_NAME=locale-$* PREF_DIR=$(PREF_DIR)
|
||||||
@$(MAKE) multilocale.txt-$* AB_CD=$* XPI_NAME=locale-$*
|
@$(MAKE) multilocale.txt-$* AB_CD=$* XPI_NAME=locale-$*
|
||||||
|
|
@ -104,7 +104,7 @@ ifndef RELEASE_OR_BETA
|
||||||
@$(MAKE) -C ../extensions/presentation/locale chrome AB_CD=$*
|
@$(MAKE) -C ../extensions/presentation/locale chrome AB_CD=$*
|
||||||
endif
|
endif
|
||||||
@$(MAKE) -C ../../devtools/client/locales chrome AB_CD=$*
|
@$(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) chrome AB_CD=$*
|
||||||
@$(MAKE) -C $(DEPTH)/$(MOZ_BRANDING_DIRECTORY)/locales chrome AB_CD=$*
|
@$(MAKE) -C $(DEPTH)/$(MOZ_BRANDING_DIRECTORY)/locales chrome AB_CD=$*
|
||||||
ifdef NIGHTLY_BUILD
|
ifdef NIGHTLY_BUILD
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ def test(mod, path, entity = None):
|
||||||
import re
|
import re
|
||||||
# ignore anything but Firefox
|
# ignore anything but Firefox
|
||||||
if mod not in ("netwerk", "dom", "toolkit", "security/manager",
|
if mod not in ("netwerk", "dom", "toolkit", "security/manager",
|
||||||
"devtools/client", "devtools/shared", "devtools/shim",
|
"devtools/client", "devtools/shared", "devtools/startup",
|
||||||
"browser",
|
"browser",
|
||||||
"browser/extensions/formautofill",
|
"browser/extensions/formautofill",
|
||||||
"browser/extensions/onboarding",
|
"browser/extensions/onboarding",
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ dirs = browser
|
||||||
other-licenses/branding/firefox
|
other-licenses/branding/firefox
|
||||||
browser/branding/official
|
browser/branding/official
|
||||||
devtools/client
|
devtools/client
|
||||||
devtools/shim
|
devtools/startup
|
||||||
browser/extensions/formautofill
|
browser/extensions/formautofill
|
||||||
browser/extensions/onboarding
|
browser/extensions/onboarding
|
||||||
browser/extensions/webcompat-reporter
|
browser/extensions/webcompat-reporter
|
||||||
|
|
|
||||||
|
|
@ -145,8 +145,8 @@ locales = [
|
||||||
path = "devtools/client/locales/l10n.toml"
|
path = "devtools/client/locales/l10n.toml"
|
||||||
|
|
||||||
[[paths]]
|
[[paths]]
|
||||||
reference = "devtools/shim/locales/en-US/**"
|
reference = "devtools/startup/locales/en-US/**"
|
||||||
l10n = "{l}devtools/shim/**"
|
l10n = "{l}devtools/startup/**"
|
||||||
|
|
||||||
# Filters
|
# Filters
|
||||||
# The filters below are evaluated one after the other, in the given order.
|
# 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 {MultiLocalizationHelper} = require("devtools/shared/l10n");
|
||||||
const L10N = new MultiLocalizationHelper(
|
const L10N = new MultiLocalizationHelper(
|
||||||
"devtools/client/locales/startup.properties",
|
"devtools/client/locales/startup.properties",
|
||||||
"devtools/shim/locales/key-shortcuts.properties"
|
"devtools/startup/locales/key-shortcuts.properties"
|
||||||
);
|
);
|
||||||
|
|
||||||
var Tools = {};
|
var Tools = {};
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
const {Cu} = require("chrome");
|
const {Cu} = require("chrome");
|
||||||
const Services = require("Services");
|
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
|
// Load gDevToolsBrowser toolbox lazily as they need gDevTools to be fully initialized
|
||||||
loader.lazyRequireGetter(this, "TargetFactory", "devtools/client/framework/target", true);
|
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
|
// Locales need to be explicitly mapped to the en-US subfolder
|
||||||
"devtools/client/locales": path.join(__dirname, "../../client/locales/en-US"),
|
"devtools/client/locales": path.join(__dirname, "../../client/locales/en-US"),
|
||||||
"devtools/shared/locales": path.join(__dirname, "../../shared/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"),
|
"toolkit/locales": path.join(__dirname, "../../../toolkit/locales/en-US"),
|
||||||
|
|
||||||
// Unless a path explicitly needs to be rewritten or shimmed, all devtools paths can
|
// 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"),
|
"toolkit/locales": path.join(__dirname, "../../../toolkit/locales/en-US"),
|
||||||
"devtools/client/locales": path.join(__dirname, "../../client/locales/en-US"),
|
"devtools/client/locales": path.join(__dirname, "../../client/locales/en-US"),
|
||||||
"devtools/shared/locales": path.join(__dirname, "../../shared/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
|
// Unless a path explicitly needs to be rewritten or shimmed, all devtools paths can
|
||||||
// be mapped to ../../
|
// 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:
|
defined in preferences files such as:
|
||||||
- devtools/client/preferences/devtools.js
|
- devtools/client/preferences/devtools.js
|
||||||
- devtools/client/preferences/debugger.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
|
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
|
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
|
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
|
### Projects using Launchpad
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,11 +13,11 @@ if CONFIG['MOZ_DEVTOOLS'] == 'all':
|
||||||
]
|
]
|
||||||
|
|
||||||
# `addon` is a special build mode to strip everything except binary components
|
# `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.
|
# add-on.
|
||||||
# `platform` contains all native components
|
# `platform` contains all native components
|
||||||
DIRS += [
|
DIRS += [
|
||||||
'shim',
|
'startup',
|
||||||
'platform',
|
'platform',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ BuiltinProvider.prototype = {
|
||||||
// used in the source tree.
|
// used in the source tree.
|
||||||
"devtools/client/locales": "chrome://devtools/locale",
|
"devtools/client/locales": "chrome://devtools/locale",
|
||||||
"devtools/shared/locales": "chrome://devtools-shared/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",
|
"toolkit/locales": "chrome://global/locale",
|
||||||
};
|
};
|
||||||
// When creating a Loader invisible to the Debugger, we have to ensure
|
// 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$/);
|
true, /^.*\.properties$/);
|
||||||
const reqClient = require.context("raw!devtools/client/locales/",
|
const reqClient = require.context("raw!devtools/client/locales/",
|
||||||
true, /^.*\.properties$/);
|
true, /^.*\.properties$/);
|
||||||
const reqShim = require.context("raw!devtools/shim/locales/",
|
const reqStartup = require.context("raw!devtools/startup/locales/",
|
||||||
true, /^.*\.properties$/);
|
true, /^.*\.properties$/);
|
||||||
const reqGlobal = require.context("raw!toolkit/locales/",
|
const reqGlobal = require.context("raw!toolkit/locales/",
|
||||||
true, /^.*\.properties$/);
|
true, /^.*\.properties$/);
|
||||||
|
|
@ -74,8 +74,8 @@ function getProperties(url) {
|
||||||
reqFn = reqGlobal;
|
reqFn = reqGlobal;
|
||||||
} else if (/^devtools\/shared/.test(url)) {
|
} else if (/^devtools\/shared/.test(url)) {
|
||||||
reqFn = reqShared;
|
reqFn = reqShared;
|
||||||
} else if (/^devtools\/shim/.test(url)) {
|
} else if (/^devtools\/startup/.test(url)) {
|
||||||
reqFn = reqShim;
|
reqFn = reqStartup;
|
||||||
} else {
|
} else {
|
||||||
reqFn = reqClient;
|
reqFn = reqClient;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ const { nsIAboutModule } = Ci;
|
||||||
function AboutDevtools() {}
|
function AboutDevtools() {}
|
||||||
|
|
||||||
AboutDevtools.prototype = {
|
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",
|
classDescription: "about:devtools",
|
||||||
classID: Components.ID("3a16d383-92bd-4c24-ac10-0e2bd66883ab"),
|
classID: Components.ID("3a16d383-92bd-4c24-ac10-0e2bd66883ab"),
|
||||||
contractID: "@mozilla.org/network/protocol/about;1?what=devtools",
|
contractID: "@mozilla.org/network/protocol/about;1?what=devtools",
|
||||||
|
|
@ -28,10 +28,10 @@ const GA_PARAMETERS = [
|
||||||
["utm_medium", "onboarding"],
|
["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 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);
|
const keyShortcutsBundle = Services.strings.createBundle(KEY_SHORTCUTS_STRINGS);
|
||||||
|
|
||||||
// URL constructor doesn't support about: scheme,
|
// URL constructor doesn't support about: scheme,
|
||||||
|
|
@ -86,47 +86,47 @@ function updatePage() {
|
||||||
*/
|
*/
|
||||||
const features = [
|
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",
|
title: "features.inspector.title",
|
||||||
desc: "features.inspector.desc",
|
desc: "features.inspector.desc",
|
||||||
link: "https://developer.mozilla.org/docs/Tools/Page_Inspector",
|
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",
|
title: "features.console.title",
|
||||||
desc: "features.console.desc",
|
desc: "features.console.desc",
|
||||||
link: "https://developer.mozilla.org/docs/Tools/Web_Console",
|
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",
|
title: "features.debugger.title",
|
||||||
desc: "features.debugger.desc",
|
desc: "features.debugger.desc",
|
||||||
link: "https://developer.mozilla.org/docs/Tools/Debugger",
|
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",
|
title: "features.network.title",
|
||||||
desc: "features.network.desc",
|
desc: "features.network.desc",
|
||||||
link: "https://developer.mozilla.org/docs/Tools/Network_Monitor",
|
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",
|
title: "features.storage.title",
|
||||||
desc: "features.storage.desc",
|
desc: "features.storage.desc",
|
||||||
link: "https://developer.mozilla.org/docs/Tools/Storage_Inspector",
|
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",
|
title: "features.responsive.title",
|
||||||
desc: "features.responsive.desc",
|
desc: "features.responsive.desc",
|
||||||
link: "https://developer.mozilla.org/docs/Tools/Responsive_Design_Mode",
|
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",
|
title: "features.visualediting.title",
|
||||||
desc: "features.visualediting.desc",
|
desc: "features.visualediting.desc",
|
||||||
link: "https://developer.mozilla.org/docs/Tools/Style_Editor",
|
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",
|
title: "features.performance.title",
|
||||||
desc: "features.performance.desc",
|
desc: "features.performance.desc",
|
||||||
link: "https://developer.mozilla.org/docs/Tools/Performance",
|
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",
|
title: "features.memory.title",
|
||||||
desc: "features.memory.desc",
|
desc: "features.memory.desc",
|
||||||
link: "https://developer.mozilla.org/docs/Tools/Memory",
|
link: "https://developer.mozilla.org/docs/Tools/Memory",
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
<!DOCTYPE html [
|
<!DOCTYPE html [
|
||||||
<!ENTITY % htmlDTD PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> %htmlDTD;
|
<!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 % 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;">
|
<html xmlns="http://www.w3.org/1999/xhtml" dir="&locale.dir;">
|
||||||
|
|
@ -13,10 +13,10 @@
|
||||||
<title>&aboutDevtools.headTitle;</title>
|
<title>&aboutDevtools.headTitle;</title>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>a
|
<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://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-startup/content/aboutdevtools/aboutdevtools.css" type="text/css"/>
|
||||||
<link rel="stylesheet" href="chrome://devtools-shim/content/aboutdevtools/subscribe.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-shim/content/aboutdevtools/aboutdevtools.js"></script>
|
<script type="application/javascript" src="chrome://devtools-startup/content/aboutdevtools/aboutdevtools.js"></script>
|
||||||
<script type="application/javascript" src="chrome://devtools-shim/content/aboutdevtools/subscribe.js"></script>
|
<script type="application/javascript" src="chrome://devtools-startup/content/aboutdevtools/subscribe.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="install-page" class="wrapper" hidden="true">
|
<div id="install-page" class="wrapper" hidden="true">
|
||||||
|
|
@ -89,7 +89,7 @@
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
<img class="dev-edition-logo"
|
<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"/>
|
alt="Firefox Developer Edition logo"/>
|
||||||
<div class="footer-message">
|
<div class="footer-message">
|
||||||
<h1 class="footer-message-title">&aboutDevtools.footer.title;</h1>
|
<h1 class="footer-message-title">&aboutDevtools.footer.title;</h1>
|
||||||
|
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 76 KiB |
|
Before Width: | Height: | Size: 631 B After Width: | Height: | Size: 631 B |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 5 KiB After Width: | Height: | Size: 5 KiB |
|
Before Width: | Height: | Size: 5 KiB After Width: | Height: | Size: 5 KiB |
|
Before Width: | Height: | Size: 3 KiB After Width: | Height: | Size: 3 KiB |
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
|
|
@ -15,7 +15,7 @@ window.addEventListener("load", function() {
|
||||||
// Timeout for the subscribe XHR.
|
// Timeout for the subscribe XHR.
|
||||||
const REQUEST_TIMEOUT = 5000;
|
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);
|
const aboutDevtoolsBundle = Services.strings.createBundle(ABOUTDEVTOOLS_STRINGS);
|
||||||
|
|
||||||
let emailInput = document.getElementById("email");
|
let emailInput = document.getElementById("email");
|
||||||
|
|
@ -45,12 +45,12 @@ ChromeUtils.defineModuleGetter(this, "CustomizableWidgets",
|
||||||
"resource:///modules/CustomizableWidgets.jsm");
|
"resource:///modules/CustomizableWidgets.jsm");
|
||||||
|
|
||||||
XPCOMUtils.defineLazyGetter(this, "StartupBundle", function() {
|
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);
|
return Services.strings.createBundle(url);
|
||||||
});
|
});
|
||||||
|
|
||||||
XPCOMUtils.defineLazyGetter(this, "KeyShortcutsBundle", function() {
|
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);
|
return Services.strings.createBundle(url);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
# 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/.
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
devtools-shim.jar:
|
devtools-startup.jar:
|
||||||
% content devtools-shim %content/
|
% content devtools-startup %content/
|
||||||
content/aboutdevtools/aboutdevtools.xhtml (aboutdevtools/aboutdevtools.xhtml)
|
content/aboutdevtools/aboutdevtools.xhtml (aboutdevtools/aboutdevtools.xhtml)
|
||||||
content/aboutdevtools/aboutdevtools.css (aboutdevtools/aboutdevtools.css)
|
content/aboutdevtools/aboutdevtools.css (aboutdevtools/aboutdevtools.css)
|
||||||
content/aboutdevtools/aboutdevtools.js (aboutdevtools/aboutdevtools.js)
|
content/aboutdevtools/aboutdevtools.js (aboutdevtools/aboutdevtools.js)
|
||||||
|
|
@ -4,5 +4,5 @@
|
||||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
@AB_CD@.jar:
|
@AB_CD@.jar:
|
||||||
% locale devtools-shim @AB_CD@ %locale/@AB_CD@/devtools/shim/
|
% locale devtools-startup @AB_CD@ %locale/@AB_CD@/devtools/startup/
|
||||||
locale/@AB_CD@/devtools/shim/ (%*)
|
locale/@AB_CD@/devtools/startup/ (%*)
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
const { DevToolsShim } =
|
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", {});
|
const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm", {});
|
||||||
|
|
||||||
// Test the DevToolsShim
|
// Test the DevToolsShim
|
||||||
|
|
@ -12,7 +12,7 @@ ChromeUtils.defineModuleGetter(this, "ExtensionParent",
|
||||||
ChromeUtils.defineModuleGetter(this, "Services",
|
ChromeUtils.defineModuleGetter(this, "Services",
|
||||||
"resource://gre/modules/Services.jsm");
|
"resource://gre/modules/Services.jsm");
|
||||||
ChromeUtils.defineModuleGetter(this, "DevToolsShim",
|
ChromeUtils.defineModuleGetter(this, "DevToolsShim",
|
||||||
"chrome://devtools-shim/content/DevToolsShim.jsm");
|
"chrome://devtools-startup/content/DevToolsShim.jsm");
|
||||||
|
|
||||||
this.runtime = class extends ExtensionAPI {
|
this.runtime = class extends ExtensionAPI {
|
||||||
getAPI(context) {
|
getAPI(context) {
|
||||||
|
|
|
||||||