Bug 1604539 - Rename shared/fronts to client/fronts in the devtools codebase r=nchevobbe

Depends on D67603
This patch is an automated string replace of shared/fronts/ to client/fronts/ in devtools.

Differential Revision: https://phabricator.services.mozilla.com/D67604

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Julian Descottes 2020-03-20 12:57:58 +00:00
Родитель 1fd78deaf4
Коммит ad4b5dfb37
48 изменённых файлов: 106 добавлений и 106 удалений

Просмотреть файл

@ -12,7 +12,7 @@ const EXCLUDED_FILES = {
};
const whatwgUrl = `
(() => {
(() => {
importScripts("resource://devtools/client/shared/vendor/whatwg-url.js");
return { URL }
})()
@ -23,7 +23,7 @@ module.exports = Object.assign(
"./source-editor": "devtools/client/sourceeditor/editor",
"../editor/source-editor": "devtools/client/sourceeditor/editor",
"./test-flag": "devtools/shared/flags",
"./fronts-device": "devtools/shared/fronts/device",
"./fronts-device": "devtools/client/fronts/device",
immutable: "devtools/client/shared/vendor/immutable",
lodash: "devtools/client/shared/vendor/lodash",
react: "devtools/client/shared/vendor/react",

Просмотреть файл

@ -193,7 +193,7 @@ loader.lazyRequireGetter(
loader.lazyRequireGetter(
this,
"NodeFront",
"devtools/shared/fronts/node",
"devtools/client/fronts/node",
true
);

Просмотреть файл

@ -15,7 +15,7 @@ const {
const {
getAdHocFrontOrPrimitiveGrip,
} = require("devtools/shared/fronts/object");
} = require("devtools/client/fronts/object");
/**
* The corresponding Front object for the WebExtensionInspectedWindowActor.

Просмотреть файл

@ -10,7 +10,7 @@ const {
loader.lazyRequireGetter(
this,
"BrowsingContextTargetFront",
"devtools/shared/fronts/targets/browsing-context",
"devtools/client/fronts/targets/browsing-context",
true
);

Просмотреть файл

@ -8,10 +8,10 @@ const {
} = require("devtools/shared/specs/descriptors/process");
const {
BrowsingContextTargetFront,
} = require("devtools/shared/fronts/targets/browsing-context");
} = require("devtools/client/fronts/targets/browsing-context");
const {
ContentProcessTargetFront,
} = require("devtools/shared/fronts/targets/content-process");
} = require("devtools/client/fronts/targets/content-process");
const {
FrontClassWithSpec,
registerFront,

Просмотреть файл

@ -8,13 +8,13 @@ const { tabDescriptorSpec } = require("devtools/shared/specs/descriptors/tab");
loader.lazyRequireGetter(
this,
"BrowsingContextTargetFront",
"devtools/shared/fronts/targets/browsing-context",
"devtools/client/fronts/targets/browsing-context",
true
);
loader.lazyRequireGetter(
this,
"LocalTabTargetFront",
"devtools/shared/fronts/targets/local-tab",
"devtools/client/fronts/targets/local-tab",
true
);
const {

Просмотреть файл

@ -13,7 +13,7 @@ const {
loader.lazyRequireGetter(
this,
"BrowsingContextTargetFront",
"devtools/shared/fronts/targets/browsing-context",
"devtools/client/fronts/targets/browsing-context",
true
);

Просмотреть файл

@ -11,7 +11,7 @@ const {
registerFront,
} = require("devtools/shared/protocol.js");
const { nodeSpec, nodeListSpec } = require("devtools/shared/specs/node");
const { SimpleStringFront } = require("devtools/shared/fronts/string");
const { SimpleStringFront } = require("devtools/client/fronts/string");
const Services = require("Services");
loader.lazyRequireGetter(

Просмотреть файл

@ -9,7 +9,7 @@ const {
FrontClassWithSpec,
registerFront,
} = require("devtools/shared/protocol");
const { LongStringFront } = require("devtools/shared/fronts/string");
const { LongStringFront } = require("devtools/client/fronts/string");
/**
* A ObjectFront is used as a front end for the ObjectActor that is

Просмотреть файл

@ -11,7 +11,7 @@ const {
} = require("devtools/shared/protocol");
const {
PerformanceRecordingFront,
} = require("devtools/shared/fronts/performance-recording");
} = require("devtools/client/fronts/performance-recording");
const { performanceSpec } = require("devtools/shared/specs/performance");
loader.lazyRequireGetter(

Просмотреть файл

@ -13,7 +13,7 @@ const {
} = require("devtools/shared/specs/property-iterator");
const {
getAdHocFrontOrPrimitiveGrip,
} = require("devtools/shared/fronts/object");
} = require("devtools/client/fronts/object");
/**
* A PropertyIteratorFront provides a way to access to property names and

Просмотреть файл

@ -14,19 +14,19 @@ loader.lazyRequireGetter(this, "getFront", "devtools/shared/protocol", true);
loader.lazyRequireGetter(
this,
"TabDescriptorFront",
"devtools/shared/fronts/descriptors/tab",
"devtools/client/fronts/descriptors/tab",
true
);
loader.lazyRequireGetter(
this,
"BrowsingContextTargetFront",
"devtools/shared/fronts/targets/browsing-context",
"devtools/client/fronts/targets/browsing-context",
true
);
loader.lazyRequireGetter(
this,
"LocalTabTargetFront",
"devtools/shared/fronts/targets/local-tab",
"devtools/client/fronts/targets/local-tab",
true
);

Просмотреть файл

@ -9,7 +9,7 @@ const {
FrontClassWithSpec,
registerFront,
} = require("devtools/shared/protocol");
const { ArrayBufferFront } = require("devtools/shared/fronts/array-buffer");
const { ArrayBufferFront } = require("devtools/client/fronts/array-buffer");
/**
* A SourceFront provides a way to access the source text of a script.

Просмотреть файл

@ -17,7 +17,7 @@ const promise = require("promise");
loader.lazyRequireGetter(
this,
"RuleRewriter",
"devtools/shared/fronts/inspector/rule-rewriter"
"devtools/client/fronts/inspector/rule-rewriter"
);
/**

Просмотреть файл

@ -11,7 +11,7 @@ const {
const { symbolIteratorSpec } = require("devtools/shared/specs/symbol-iterator");
const {
getAdHocFrontOrPrimitiveGrip,
} = require("devtools/shared/fronts/object");
} = require("devtools/client/fronts/object");
/**
* A SymbolIteratorFront is used as a front end for the SymbolIterator that is

Просмотреть файл

@ -10,7 +10,7 @@ const {
FrontClassWithSpec,
registerFront,
} = require("devtools/shared/protocol");
const { TargetMixin } = require("devtools/shared/fronts/targets/target-mixin");
const { TargetMixin } = require("devtools/client/fronts/targets/target-mixin");
class BrowsingContextTargetFront extends TargetMixin(
FrontClassWithSpec(browsingContextTargetSpec)

Просмотреть файл

@ -10,7 +10,7 @@ const {
FrontClassWithSpec,
registerFront,
} = require("devtools/shared/protocol");
const { TargetMixin } = require("devtools/shared/fronts/targets/target-mixin");
const { TargetMixin } = require("devtools/client/fronts/targets/target-mixin");
class ContentProcessTargetFront extends TargetMixin(
FrontClassWithSpec(contentProcessTargetSpec)

Просмотреть файл

@ -19,7 +19,7 @@ loader.lazyRequireGetter(
loader.lazyRequireGetter(
this,
"BrowsingContextTargetFront",
"devtools/shared/fronts/targets/browsing-context",
"devtools/client/fronts/targets/browsing-context",
true
);

Просмотреть файл

@ -165,7 +165,7 @@ function TargetMixin(parentClass) {
/**
* The following getters: isLocalTab, localTab, ... will be overriden for
* local tabs by some code in devtools/shared/fronts/targets/local-tab.js.
* local tabs by some code in devtools/client/fronts/targets/local-tab.js.
* They are all specific to local tabs, i.e. when you are debugging a tab of
* the current Firefox instance.
*/

Просмотреть файл

@ -9,7 +9,7 @@ const {
FrontClassWithSpec,
registerFront,
} = require("devtools/shared/protocol");
const { TargetMixin } = require("devtools/shared/fronts/targets/target-mixin");
const { TargetMixin } = require("devtools/client/fronts/targets/target-mixin");
class WorkerTargetFront extends TargetMixin(
FrontClassWithSpec(workerTargetSpec)

Просмотреть файл

@ -15,14 +15,14 @@ const { threadSpec } = require("devtools/shared/specs/thread");
loader.lazyRequireGetter(
this,
"ObjectFront",
"devtools/shared/fronts/object",
"devtools/client/fronts/object",
true
);
loader.lazyRequireGetter(this, "FrameFront", "devtools/shared/fronts/frame");
loader.lazyRequireGetter(this, "FrameFront", "devtools/client/fronts/frame");
loader.lazyRequireGetter(
this,
"SourceFront",
"devtools/shared/fronts/source",
"devtools/client/fronts/source",
true
);

Просмотреть файл

@ -5,7 +5,7 @@
"use strict";
const DevToolsUtils = require("devtools/shared/DevToolsUtils");
const { LongStringFront } = require("devtools/shared/fronts/string");
const { LongStringFront } = require("devtools/client/fronts/string");
const {
FrontClassWithSpec,
registerFront,
@ -13,7 +13,7 @@ const {
const { webconsoleSpec } = require("devtools/shared/specs/webconsole");
const {
getAdHocFrontOrPrimitiveGrip,
} = require("devtools/shared/fronts/object");
} = require("devtools/client/fronts/object");
/**
* A WebConsoleFront is used as a front end for the WebConsoleActor that is

Просмотреть файл

@ -25,14 +25,14 @@ const {
loader.lazyRequireGetter(
this,
"LongStringFront",
"devtools/shared/fronts/string",
"devtools/client/fronts/string",
true
);
loader.lazyRequireGetter(
this,
"ObjectFront",
"devtools/shared/fronts/object",
"devtools/client/fronts/object",
true
);

Просмотреть файл

@ -19,7 +19,7 @@ const Promise = require("Promise");
loader.lazyRequireGetter(
this,
"initCssProperties",
"devtools/shared/fronts/css-properties",
"devtools/client/fronts/css-properties",
true
);
loader.lazyRequireGetter(

Просмотреть файл

@ -37,7 +37,7 @@ loader.lazyRequireGetter(
loader.lazyRequireGetter(
this,
"isCssVariable",
"devtools/shared/fronts/css-properties",
"devtools/client/fronts/css-properties",
true
);

Просмотреть файл

@ -13,7 +13,7 @@ const { CSS_PROPERTIES_DB } = require("devtools/shared/css/properties-db");
const {
initCssProperties,
getCssProperties,
} = require("devtools/shared/fronts/css-properties");
} = require("devtools/client/fronts/css-properties");
const COLOR_CLASS = "color-class";
const URL_CLASS = "url-class";

Просмотреть файл

@ -8,7 +8,7 @@
"use strict";
const { assert } = require("devtools/shared/DevToolsUtils");
const { MemoryFront } = require("devtools/shared/fronts/memory");
const { MemoryFront } = require("devtools/client/fronts/memory");
const HeapAnalysesClient = require("devtools/shared/heapsnapshot/HeapAnalysesClient");
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const {

Просмотреть файл

@ -19,7 +19,7 @@ const mappings = {
"./source-editor": "devtools/client/shared/sourceeditor/editor",
"../editor/source-editor": "devtools/client/shared/sourceeditor/editor",
"./test-flag": "devtools/shared/flags",
"./fronts-device": "devtools/shared/fronts/device",
"./fronts-device": "devtools/client/fronts/device",
immutable: "devtools/client/shared/vendor/immutable",
lodash: "devtools/client/shared/vendor/lodash",
react: "devtools/client/shared/vendor/react",

Просмотреть файл

@ -10,7 +10,7 @@ const {
} = require("devtools/shared/css/parsing-utils");
const {
getClientCssProperties,
} = require("devtools/shared/fronts/css-properties");
} = require("devtools/client/fronts/css-properties");
/**
* Here is what this file (+ css-parsing-utils.js) do.

Просмотреть файл

@ -150,7 +150,7 @@ function Editor(config) {
themeSwitching: true,
autocomplete: false,
autocompleteOpts: {},
// Expect a CssProperties object (see devtools/shared/fronts/css-properties.js)
// Expect a CssProperties object (see devtools/client/fronts/css-properties.js)
cssProperties: null,
// Set to true to prevent the search addon to be activated.
disableSearchAddon: false,

Просмотреть файл

@ -15,7 +15,7 @@ Services.scriptloader.loadSubScript(
const Editor = require("devtools/client/shared/sourceeditor/editor");
const {
getClientCssProperties,
} = require("devtools/shared/fronts/css-properties");
} = require("devtools/client/fronts/css-properties");
function promiseWaitForFocus(el) {
return new Promise(resolve => waitForFocus(resolve, el));

Просмотреть файл

@ -6,7 +6,7 @@
const {
initCssProperties,
getCssProperties,
} = require("devtools/shared/fronts/css-properties");
} = require("devtools/client/fronts/css-properties");
const { CSS_PROPERTIES_DB } = require("devtools/shared/css/properties-db");
add_task(async function() {

Просмотреть файл

@ -4,7 +4,7 @@
"use strict";
const { require } = ChromeUtils.import("resource://devtools/shared/Loader.jsm");
const RuleRewriter = require("devtools/shared/fronts/inspector/rule-rewriter");
const RuleRewriter = require("devtools/client/fronts/inspector/rule-rewriter");
const { isCssPropertyKnown } = require("devtools/server/actors/css-properties");
const TEST_DATA = [

Просмотреть файл

@ -14,7 +14,7 @@ var {
var {
getString,
} = require("resource://devtools/client/styleeditor/StyleEditorUtil.jsm");
var { initCssProperties } = require("devtools/shared/fronts/css-properties");
var { initCssProperties } = require("devtools/client/fronts/css-properties");
var StyleEditorPanel = function StyleEditorPanel(panelWin, toolbox) {
EventEmitter.decorate(this);

Просмотреть файл

@ -7,7 +7,7 @@
const TESTCASE_URI = TEST_BASE_HTTP + "autocomplete.html";
const MAX_SUGGESTIONS = 15;
const { initCssProperties } = require("devtools/shared/fronts/css-properties");
const { initCssProperties } = require("devtools/client/fronts/css-properties");
// Test cases to test that autocompletion works correctly when enabled.
// Format:

Просмотреть файл

@ -8,7 +8,7 @@ const { OS } = ChromeUtils.import("resource://gre/modules/osfile.jsm");
const {
getAdHocFrontOrPrimitiveGrip,
} = require("devtools/shared/fronts/object");
} = require("devtools/client/fronts/object");
const CHROME_PREFIX = "chrome://mochitests/content/browser/";
const STUBS_FOLDER = "devtools/client/webconsole/test/node/fixtures/stubs/";

Просмотреть файл

@ -29,14 +29,14 @@ loader.lazyRequireGetter(
loader.lazyRequireGetter(
this,
"LongStringFront",
"devtools/shared/fronts/string",
"devtools/client/fronts/string",
true
);
loader.lazyRequireGetter(
this,
"ObjectFront",
"devtools/shared/fronts/object",
"devtools/client/fronts/object",
true
);

Просмотреть файл

@ -18,7 +18,7 @@ const { BrowserLoader } = ChromeUtils.import(
);
const {
getAdHocFrontOrPrimitiveGrip,
} = require("devtools/shared/fronts/object");
} = require("devtools/client/fronts/object");
loader.lazyRequireGetter(
this,

Просмотреть файл

@ -467,7 +467,7 @@ class WebConsole {
*
* @param {String} string: The code you want to evaluate.
* @param {Object} options: Options for evaluation. See evaluateJSAsync method on
* devtools/shared/fronts/webconsole.js
* devtools/client/fronts/webconsole.js
*/
evaluateJSAsync(expression, options = {}) {
return this.ui._commands.evaluateJSAsync(expression, options);

Просмотреть файл

@ -67,7 +67,7 @@ A request/reply will look like this:
<- { from: <actorID>, greeting: "hello" }
Now we can create a client side object. We call these *front* objects and
they typically go in `devtools/shared/fronts/`.
they typically go in `devtools/client/fronts/`.
Here's the front for the HelloActor:
@ -479,7 +479,7 @@ Now you can listen to events on a front:
If you want to modify the argument that will be passed to event listeners callbacks, you
can use `before(eventName, fn)` in the front definition. This can only be used once for a
given `eventName`. The `fn` function will be called before emitting the event via
the EventEmitter API on the Front, and its return value will be passed to the event
the EventEmitter API on the Front, and its return value will be passed to the event
listener callbacks. If `fn` is async, the event will only be emitted after `fn` call resolves.
// In front file, most probably in the constructor:

Просмотреть файл

@ -14,7 +14,7 @@ Bug 1265798 - Replace inIDOMUtils.cssPropertyIsShorthand
window.onload = function() {
const { initCssProperties, getCssProperties } =
require("devtools/shared/fronts/css-properties");
require("devtools/client/fronts/css-properties");
function toSortedString(array) {
return JSON.stringify(array.sort());

Просмотреть файл

@ -43,8 +43,8 @@ const { DevToolsServer: WorkerDevToolsServer } = worker.require(
"devtools/server/devtools-server"
);
const { DevToolsClient } = require("devtools/shared/client/devtools-client");
const { ObjectFront } = require("devtools/shared/fronts/object");
const { LongStringFront } = require("devtools/shared/fronts/string");
const { ObjectFront } = require("devtools/client/fronts/object");
const { LongStringFront } = require("devtools/client/fronts/string");
const { TargetFactory } = require("devtools/client/framework/target");
const { addDebuggerToGlobal } = ChromeUtils.import(

Просмотреть файл

@ -3,10 +3,10 @@
"use strict";
const { ThreadFront } = require("devtools/shared/fronts/thread");
const { ThreadFront } = require("devtools/client/fronts/thread");
const {
BrowsingContextTargetFront,
} = require("devtools/shared/fronts/targets/browsing-context");
} = require("devtools/client/fronts/targets/browsing-context");
/**
* Very naive test that checks threadClearTest helper.

Просмотреть файл

@ -4,7 +4,7 @@
"use strict";
const { EnvironmentFront } = require("devtools/shared/fronts/environment");
const { EnvironmentFront } = require("devtools/client/fronts/environment");
add_task(
threadFrontTest(async ({ threadFront, debuggee, client }) => {

Просмотреть файл

@ -37,7 +37,7 @@ loader.lazyRequireGetter(
loader.lazyRequireGetter(
this,
"ObjectFront",
"devtools/shared/fronts/object",
"devtools/client/fronts/object",
true
);
loader.lazyRequireGetter(this, "Front", "devtools/shared/protocol", true);

Просмотреть файл

@ -13,7 +13,7 @@ var EventEmitter = require("devtools/shared/event-emitter");
var { LongStringActor } = require("devtools/server/actors/string");
// The test implicitly relies on this.
require("devtools/shared/fronts/string");
require("devtools/client/fronts/string");
function simpleHello() {
return {

Просмотреть файл

@ -20,82 +20,82 @@ const Types = (exports.__TypesForTests = [
"parentaccessibility",
],
spec: "devtools/shared/specs/accessibility",
front: "devtools/shared/fronts/accessibility",
front: "devtools/client/fronts/accessibility",
},
{
types: ["addons"],
spec: "devtools/shared/specs/addon/addons",
front: "devtools/shared/fronts/addon/addons",
front: "devtools/client/fronts/addon/addons",
},
{
types: ["webExtensionInspectedWindow"],
spec: "devtools/shared/specs/addon/webextension-inspected-window",
front: "devtools/shared/fronts/addon/webextension-inspected-window",
front: "devtools/client/fronts/addon/webextension-inspected-window",
},
{
types: ["animationplayer", "animations"],
spec: "devtools/shared/specs/animation",
front: "devtools/shared/fronts/animation",
front: "devtools/client/fronts/animation",
},
{
types: ["arraybuffer"],
spec: "devtools/shared/specs/array-buffer",
front: "devtools/shared/fronts/array-buffer",
front: "devtools/client/fronts/array-buffer",
},
{
types: ["changes"],
spec: "devtools/shared/specs/changes",
front: "devtools/shared/fronts/changes",
front: "devtools/client/fronts/changes",
},
{
types: ["contentViewer"],
spec: "devtools/shared/specs/content-viewer",
front: "devtools/shared/fronts/content-viewer",
front: "devtools/client/fronts/content-viewer",
},
{
types: ["cssProperties"],
spec: "devtools/shared/specs/css-properties",
front: "devtools/shared/fronts/css-properties",
front: "devtools/client/fronts/css-properties",
},
{
types: ["frameDescriptor"],
spec: "devtools/shared/specs/descriptors/frame",
front: "devtools/shared/fronts/descriptors/frame",
front: "devtools/client/fronts/descriptors/frame",
},
{
types: ["processDescriptor"],
spec: "devtools/shared/specs/descriptors/process",
front: "devtools/shared/fronts/descriptors/process",
front: "devtools/client/fronts/descriptors/process",
},
{
types: ["tabDescriptor"],
spec: "devtools/shared/specs/descriptors/tab",
front: "devtools/shared/fronts/descriptors/tab",
front: "devtools/client/fronts/descriptors/tab",
},
{
types: ["webExtensionDescriptor"],
spec: "devtools/shared/specs/descriptors/webextension",
front: "devtools/shared/fronts/descriptors/webextension",
front: "devtools/client/fronts/descriptors/webextension",
},
{
types: ["device"],
spec: "devtools/shared/specs/device",
front: "devtools/shared/fronts/device",
front: "devtools/client/fronts/device",
},
{
types: ["environment"],
spec: "devtools/shared/specs/environment",
front: "devtools/shared/fronts/environment",
front: "devtools/client/fronts/environment",
},
{
types: ["frame"],
spec: "devtools/shared/specs/frame",
front: "devtools/shared/fronts/frame",
front: "devtools/client/fronts/frame",
},
{
types: ["framerate"],
spec: "devtools/shared/specs/framerate",
front: "devtools/shared/fronts/framerate",
front: "devtools/client/fronts/framerate",
},
/* heap snapshot has old fashion client and no front */
{
@ -106,27 +106,27 @@ const Types = (exports.__TypesForTests = [
{
types: ["highlighter", "customhighlighter"],
spec: "devtools/shared/specs/highlighters",
front: "devtools/shared/fronts/highlighters",
front: "devtools/client/fronts/highlighters",
},
{
types: ["inspector"],
spec: "devtools/shared/specs/inspector",
front: "devtools/shared/fronts/inspector",
front: "devtools/client/fronts/inspector",
},
{
types: ["flexbox", "grid", "layout"],
spec: "devtools/shared/specs/layout",
front: "devtools/shared/fronts/layout",
front: "devtools/client/fronts/layout",
},
{
types: ["manifest"],
spec: "devtools/shared/specs/manifest",
front: "devtools/shared/fronts/manifest",
front: "devtools/client/fronts/manifest",
},
{
types: ["memory"],
spec: "devtools/shared/specs/memory",
front: "devtools/shared/fronts/memory",
front: "devtools/client/fronts/memory",
},
{
types: ["netEvent"],
@ -142,7 +142,7 @@ const Types = (exports.__TypesForTests = [
{
types: ["domnode", "domnodelist"],
spec: "devtools/shared/specs/node",
front: "devtools/shared/fronts/node",
front: "devtools/client/fronts/node",
},
{
types: ["obj", "object.descriptor"],
@ -152,52 +152,52 @@ const Types = (exports.__TypesForTests = [
{
types: ["perf"],
spec: "devtools/shared/specs/perf",
front: "devtools/shared/fronts/perf",
front: "devtools/client/fronts/perf",
},
{
types: ["performance"],
spec: "devtools/shared/specs/performance",
front: "devtools/shared/fronts/performance",
front: "devtools/client/fronts/performance",
},
{
types: ["performance-recording"],
spec: "devtools/shared/specs/performance-recording",
front: "devtools/shared/fronts/performance-recording",
front: "devtools/client/fronts/performance-recording",
},
{
types: ["preference"],
spec: "devtools/shared/specs/preference",
front: "devtools/shared/fronts/preference",
front: "devtools/client/fronts/preference",
},
{
types: ["propertyIterator"],
spec: "devtools/shared/specs/property-iterator",
front: "devtools/shared/fronts/property-iterator",
front: "devtools/client/fronts/property-iterator",
},
{
types: ["reflow"],
spec: "devtools/shared/specs/reflow",
front: "devtools/shared/fronts/reflow",
front: "devtools/client/fronts/reflow",
},
{
types: ["responsive"],
spec: "devtools/shared/specs/responsive",
front: "devtools/shared/fronts/responsive",
front: "devtools/client/fronts/responsive",
},
{
types: ["root"],
spec: "devtools/shared/specs/root",
front: "devtools/shared/fronts/root",
front: "devtools/client/fronts/root",
},
{
types: ["screenshot"],
spec: "devtools/shared/specs/screenshot",
front: "devtools/shared/fronts/screenshot",
front: "devtools/client/fronts/screenshot",
},
{
types: ["source"],
spec: "devtools/shared/specs/source",
front: "devtools/shared/fronts/source",
front: "devtools/client/fronts/source",
},
{
types: [
@ -209,7 +209,7 @@ const Types = (exports.__TypesForTests = [
"storage",
],
spec: "devtools/shared/specs/storage",
front: "devtools/shared/fronts/storage",
front: "devtools/client/fronts/storage",
},
/* longstring is special, it has a wrapper type. See its spec module */
{
@ -220,17 +220,17 @@ const Types = (exports.__TypesForTests = [
{
types: ["longstractor"],
spec: "devtools/shared/specs/string",
front: "devtools/shared/fronts/string",
front: "devtools/client/fronts/string",
},
{
types: ["pagestyle", "domstylerule"],
spec: "devtools/shared/specs/styles",
front: "devtools/shared/fronts/styles",
front: "devtools/client/fronts/styles",
},
{
types: ["mediarule", "stylesheet", "stylesheets"],
spec: "devtools/shared/specs/stylesheets",
front: "devtools/shared/fronts/stylesheets",
front: "devtools/client/fronts/stylesheets",
},
{
types: ["symbol"],
@ -240,12 +240,12 @@ const Types = (exports.__TypesForTests = [
{
types: ["symbolIterator"],
spec: "devtools/shared/specs/symbol-iterator",
front: "devtools/shared/fronts/symbol-iterator",
front: "devtools/client/fronts/symbol-iterator",
},
{
types: ["browsingContextTarget"],
spec: "devtools/shared/specs/targets/browsing-context",
front: "devtools/shared/fronts/targets/browsing-context",
front: "devtools/client/fronts/targets/browsing-context",
},
{
types: ["chromeWindowTarget"],
@ -275,42 +275,42 @@ const Types = (exports.__TypesForTests = [
{
types: ["workerTarget"],
spec: "devtools/shared/specs/targets/worker",
front: "devtools/shared/fronts/targets/worker",
front: "devtools/client/fronts/targets/worker",
},
{
types: ["thread"],
spec: "devtools/shared/specs/thread",
front: "devtools/shared/fronts/thread",
front: "devtools/client/fronts/thread",
},
{
types: ["domwalker"],
spec: "devtools/shared/specs/walker",
front: "devtools/shared/fronts/walker",
front: "devtools/client/fronts/walker",
},
{
types: ["console"],
spec: "devtools/shared/specs/webconsole",
front: "devtools/shared/fronts/webconsole",
front: "devtools/client/fronts/webconsole",
},
{
types: ["webSocket"],
spec: "devtools/shared/specs/websocket",
front: "devtools/shared/fronts/websocket",
front: "devtools/client/fronts/websocket",
},
{
types: ["pushSubscription"],
spec: "devtools/shared/specs/worker/push-subscription",
front: "devtools/shared/fronts/worker/push-subscription",
front: "devtools/client/fronts/worker/push-subscription",
},
{
types: ["serviceWorker"],
spec: "devtools/shared/specs/worker/service-worker",
front: "devtools/shared/fronts/worker/service-worker",
front: "devtools/client/fronts/worker/service-worker",
},
{
types: ["serviceWorkerRegistration"],
spec: "devtools/shared/specs/worker/service-worker-registration",
front: "devtools/shared/fronts/worker/service-worker-registration",
front: "devtools/client/fronts/worker/service-worker-registration",
},
]);

Просмотреть файл

@ -11,7 +11,7 @@
const { require } = ChromeUtils.import("resource://devtools/shared/Loader.jsm");
const { DevToolsServer } = require("devtools/server/devtools-server");
const { DevToolsClient } = require("devtools/shared/client/devtools-client");
const { ObjectFront } = require("devtools/shared/fronts/object");
const { ObjectFront } = require("devtools/client/fronts/object");
const Services = require("Services");
function initCommon() {