зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1792849 - [devtools] Use absolute URLs to import modules in devtools/server. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D158487
This commit is contained in:
Родитель
b7019e3a9f
Коммит
821cf2500c
|
@ -4,8 +4,13 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const { Actor, ActorClassWithSpec } = require("devtools/shared/protocol");
|
||||
const { accessibilitySpec } = require("devtools/shared/specs/accessibility");
|
||||
const {
|
||||
Actor,
|
||||
ActorClassWithSpec,
|
||||
} = require("resource://devtools/shared/protocol.js");
|
||||
const {
|
||||
accessibilitySpec,
|
||||
} = require("resource://devtools/shared/specs/accessibility.js");
|
||||
|
||||
loader.lazyRequireGetter(
|
||||
this,
|
||||
|
|
|
@ -4,11 +4,16 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const { Actor, ActorClassWithSpec } = require("devtools/shared/protocol");
|
||||
const { accessibleSpec } = require("devtools/shared/specs/accessibility");
|
||||
const {
|
||||
Actor,
|
||||
ActorClassWithSpec,
|
||||
} = require("resource://devtools/shared/protocol.js");
|
||||
const {
|
||||
accessibleSpec,
|
||||
} = require("resource://devtools/shared/specs/accessibility.js");
|
||||
const {
|
||||
accessibility: { AUDIT_TYPE },
|
||||
} = require("devtools/shared/constants");
|
||||
} = require("resource://devtools/shared/constants.js");
|
||||
|
||||
loader.lazyRequireGetter(
|
||||
this,
|
||||
|
|
|
@ -57,7 +57,7 @@ const WORKER_URL = "resource://devtools/server/actors/accessibility/worker.js";
|
|||
const HIGHLIGHTED_PSEUDO_CLASS = ":-moz-devtools-highlighted";
|
||||
const {
|
||||
LARGE_TEXT: { BOLD_LARGE_TEXT_MIN_PIXELS, LARGE_TEXT_MIN_PIXELS },
|
||||
} = require("devtools/shared/accessibility");
|
||||
} = require("resource://devtools/shared/accessibility.js");
|
||||
|
||||
loader.lazyGetter(this, "worker", () => new DevToolsWorker(WORKER_URL));
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ const {
|
|||
},
|
||||
SCORES: { FAIL, WARNING },
|
||||
},
|
||||
} = require("devtools/shared/constants");
|
||||
} = require("resource://devtools/shared/constants.js");
|
||||
|
||||
// Specified by the author CSS rule type.
|
||||
const STYLE_RULE = 1;
|
||||
|
|
|
@ -10,7 +10,7 @@ const {
|
|||
ISSUE_TYPE,
|
||||
SCORES: { BEST_PRACTICES, FAIL, WARNING },
|
||||
},
|
||||
} = require("devtools/shared/constants");
|
||||
} = require("resource://devtools/shared/constants.js");
|
||||
|
||||
const {
|
||||
AREA_NO_NAME_FROM_ALT,
|
||||
|
|
|
@ -14,7 +14,7 @@ const {
|
|||
CONTRAST_LOSS,
|
||||
},
|
||||
},
|
||||
} = require("devtools/shared/constants");
|
||||
} = require("resource://devtools/shared/constants.js");
|
||||
|
||||
/**
|
||||
* Constants used in accessibility actors.
|
||||
|
|
|
@ -4,10 +4,13 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const { Actor, ActorClassWithSpec } = require("devtools/shared/protocol");
|
||||
const {
|
||||
Actor,
|
||||
ActorClassWithSpec,
|
||||
} = require("resource://devtools/shared/protocol.js");
|
||||
const {
|
||||
parentAccessibilitySpec,
|
||||
} = require("devtools/shared/specs/accessibility");
|
||||
} = require("resource://devtools/shared/specs/accessibility.js");
|
||||
|
||||
const PREF_ACCESSIBILITY_FORCE_DISABLED = "accessibility.force_disabled";
|
||||
|
||||
|
|
|
@ -4,11 +4,16 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const { Actor, ActorClassWithSpec } = require("devtools/shared/protocol");
|
||||
const { simulatorSpec } = require("devtools/shared/specs/accessibility");
|
||||
const {
|
||||
Actor,
|
||||
ActorClassWithSpec,
|
||||
} = require("resource://devtools/shared/protocol.js");
|
||||
const {
|
||||
simulatorSpec,
|
||||
} = require("resource://devtools/shared/specs/accessibility.js");
|
||||
const {
|
||||
simulation: { COLOR_TRANSFORMATION_MATRICES },
|
||||
} = require("devtools/server/actors/accessibility/constants");
|
||||
} = require("resource://devtools/server/actors/accessibility/constants.js");
|
||||
|
||||
/**
|
||||
* The SimulatorActor is responsible for setting color matrices
|
||||
|
|
|
@ -4,11 +4,16 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const { Actor, ActorClassWithSpec } = require("devtools/shared/protocol");
|
||||
const { accessibleWalkerSpec } = require("devtools/shared/specs/accessibility");
|
||||
const {
|
||||
Actor,
|
||||
ActorClassWithSpec,
|
||||
} = require("resource://devtools/shared/protocol.js");
|
||||
const {
|
||||
accessibleWalkerSpec,
|
||||
} = require("resource://devtools/shared/specs/accessibility.js");
|
||||
const {
|
||||
simulation: { COLOR_TRANSFORMATION_MATRICES },
|
||||
} = require("devtools/server/actors/accessibility/constants");
|
||||
} = require("resource://devtools/server/actors/accessibility/constants.js");
|
||||
|
||||
loader.lazyRequireGetter(
|
||||
this,
|
||||
|
|
|
@ -7,11 +7,13 @@
|
|||
const { AddonManager } = ChromeUtils.import(
|
||||
"resource://gre/modules/AddonManager.jsm"
|
||||
);
|
||||
const protocol = require("devtools/shared/protocol");
|
||||
const protocol = require("resource://devtools/shared/protocol.js");
|
||||
const { FileUtils } = ChromeUtils.import(
|
||||
"resource://gre/modules/FileUtils.jsm"
|
||||
);
|
||||
const { addonsSpec } = require("devtools/shared/specs/addon/addons");
|
||||
const {
|
||||
addonsSpec,
|
||||
} = require("resource://devtools/shared/specs/addon/addons.js");
|
||||
|
||||
// This actor is not used by DevTools, but is relied on externally by
|
||||
// webext-run and the Firefox VS-Code plugin. see bug #1578108
|
||||
|
@ -38,8 +40,10 @@ const AddonsActor = protocol.ActorClassWithSpec(addonsSpec, {
|
|||
// about:debugging is only using this API when debugging its own firefox instance,
|
||||
// so for now, there is no chance of calling this on Android.
|
||||
if (openDevTools) {
|
||||
// eslint-disable-next-line mozilla/reject-some-requires
|
||||
const { gDevTools } = require("devtools/client/framework/devtools");
|
||||
const {
|
||||
gDevTools,
|
||||
// eslint-disable-next-line mozilla/reject-some-requires
|
||||
} = require("resource://devtools/client/framework/devtools.js");
|
||||
gDevTools.showToolboxForWebExtension(addon.id);
|
||||
}
|
||||
|
||||
|
|
|
@ -4,20 +4,23 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const protocol = require("devtools/shared/protocol");
|
||||
const protocol = require("resource://devtools/shared/protocol.js");
|
||||
|
||||
const { DevToolsServer } = require("devtools/server/devtools-server");
|
||||
const {
|
||||
DevToolsServer,
|
||||
} = require("resource://devtools/server/devtools-server.js");
|
||||
|
||||
loader.lazyGetter(
|
||||
this,
|
||||
"NodeActor",
|
||||
() => require("devtools/server/actors/inspector/node").NodeActor,
|
||||
() =>
|
||||
require("resource://devtools/server/actors/inspector/node.js").NodeActor,
|
||||
true
|
||||
);
|
||||
|
||||
const {
|
||||
webExtensionInspectedWindowSpec,
|
||||
} = require("devtools/shared/specs/addon/webextension-inspected-window");
|
||||
} = require("resource://devtools/shared/specs/addon/webextension-inspected-window.js");
|
||||
|
||||
// A weak set of the documents for which a warning message has been
|
||||
// already logged (so that we don't keep emitting the same warning if an
|
||||
|
|
|
@ -25,15 +25,15 @@
|
|||
* /dom/webidl/Animation*.webidl
|
||||
*/
|
||||
|
||||
const protocol = require("devtools/shared/protocol");
|
||||
const protocol = require("resource://devtools/shared/protocol.js");
|
||||
const { Actor } = protocol;
|
||||
const {
|
||||
animationPlayerSpec,
|
||||
animationsSpec,
|
||||
} = require("devtools/shared/specs/animation");
|
||||
} = require("resource://devtools/shared/specs/animation.js");
|
||||
const {
|
||||
ANIMATION_TYPE_FOR_LONGHANDS,
|
||||
} = require("devtools/server/actors/animation-type-longhand");
|
||||
} = require("resource://devtools/server/actors/animation-type-longhand.js");
|
||||
|
||||
// Types of animations.
|
||||
const ANIMATION_TYPES = {
|
||||
|
|
|
@ -4,8 +4,10 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
var protocol = require("devtools/shared/protocol");
|
||||
const { arrayBufferSpec } = require("devtools/shared/specs/array-buffer");
|
||||
var protocol = require("resource://devtools/shared/protocol.js");
|
||||
const {
|
||||
arrayBufferSpec,
|
||||
} = require("resource://devtools/shared/specs/array-buffer.js");
|
||||
|
||||
/**
|
||||
* Creates an actor for the specified ArrayBuffer.
|
||||
|
|
|
@ -4,8 +4,13 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const { ActorClassWithSpec, Actor } = require("devtools/shared/protocol");
|
||||
const { blackboxingSpec } = require("devtools/shared/specs/blackboxing");
|
||||
const {
|
||||
ActorClassWithSpec,
|
||||
Actor,
|
||||
} = require("resource://devtools/shared/protocol.js");
|
||||
const {
|
||||
blackboxingSpec,
|
||||
} = require("resource://devtools/shared/specs/blackboxing.js");
|
||||
const {
|
||||
SessionDataHelpers,
|
||||
} = require("resource://devtools/server/actors/watcher/SessionDataHelpers.jsm");
|
||||
|
|
|
@ -4,8 +4,13 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const { ActorClassWithSpec, Actor } = require("devtools/shared/protocol");
|
||||
const { breakpointListSpec } = require("devtools/shared/specs/breakpoint-list");
|
||||
const {
|
||||
ActorClassWithSpec,
|
||||
Actor,
|
||||
} = require("resource://devtools/shared/protocol.js");
|
||||
const {
|
||||
breakpointListSpec,
|
||||
} = require("resource://devtools/shared/specs/breakpoint-list.js");
|
||||
const {
|
||||
SessionDataHelpers,
|
||||
} = require("resource://devtools/server/actors/watcher/SessionDataHelpers.jsm");
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
const {
|
||||
logEvent,
|
||||
getThrownMessage,
|
||||
} = require("devtools/server/actors/utils/logEvent");
|
||||
} = require("resource://devtools/server/actors/utils/logEvent.js");
|
||||
|
||||
/**
|
||||
* Set breakpoints on all the given entry points with the given
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const protocol = require("devtools/shared/protocol");
|
||||
const { changesSpec } = require("devtools/shared/specs/changes");
|
||||
const TrackChangeEmitter = require("devtools/server/actors/utils/track-change-emitter");
|
||||
const protocol = require("resource://devtools/shared/protocol.js");
|
||||
const { changesSpec } = require("resource://devtools/shared/specs/changes.js");
|
||||
const TrackChangeEmitter = require("resource://devtools/server/actors/utils/track-change-emitter.js");
|
||||
|
||||
/**
|
||||
* The ChangesActor stores a stack of changes made by devtools on
|
||||
|
|
|
@ -4,12 +4,14 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
var protocol = require("devtools/shared/protocol");
|
||||
const { compatibilitySpec } = require("devtools/shared/specs/compatibility");
|
||||
var protocol = require("resource://devtools/shared/protocol.js");
|
||||
const {
|
||||
compatibilitySpec,
|
||||
} = require("resource://devtools/shared/specs/compatibility.js");
|
||||
|
||||
loader.lazyGetter(this, "mdnCompatibility", () => {
|
||||
const MDNCompatibility = require("devtools/server/actors/compatibility/lib/MDNCompatibility");
|
||||
const cssPropertiesCompatData = require("devtools/shared/compatibility/dataset/css-properties.json");
|
||||
const MDNCompatibility = require("resource://devtools/server/actors/compatibility/lib/MDNCompatibility.js");
|
||||
const cssPropertiesCompatData = require("resource://devtools/shared/compatibility/dataset/css-properties.json");
|
||||
return new MDNCompatibility(cssPropertiesCompatData);
|
||||
});
|
||||
|
||||
|
|
|
@ -12,7 +12,9 @@ const _SUPPORT_STATE = {
|
|||
UNSUPPORTED_PREFIX_NEEDED: "UNSUPPORTED_PREFIX_NEEDED",
|
||||
};
|
||||
|
||||
const { COMPATIBILITY_ISSUE_TYPE } = require("devtools/shared/constants");
|
||||
const {
|
||||
COMPATIBILITY_ISSUE_TYPE,
|
||||
} = require("resource://devtools/shared/constants.js");
|
||||
|
||||
/**
|
||||
* A class with methods used to query the MDN compatibility data for CSS properties and
|
||||
|
|
|
@ -4,9 +4,11 @@
|
|||
|
||||
// Test for the MDN compatibility diagnosis module.
|
||||
|
||||
const { COMPATIBILITY_ISSUE_TYPE } = require("devtools/shared/constants");
|
||||
const MDNCompatibility = require("devtools/server/actors/compatibility/lib/MDNCompatibility");
|
||||
const cssPropertiesCompatData = require("devtools/shared/compatibility/dataset/css-properties.json");
|
||||
const {
|
||||
COMPATIBILITY_ISSUE_TYPE,
|
||||
} = require("resource://devtools/shared/constants.js");
|
||||
const MDNCompatibility = require("resource://devtools/server/actors/compatibility/lib/MDNCompatibility.js");
|
||||
const cssPropertiesCompatData = require("resource://devtools/shared/compatibility/dataset/css-properties.json");
|
||||
|
||||
const mdnCompatibility = new MDNCompatibility(cssPropertiesCompatData);
|
||||
|
||||
|
|
|
@ -4,10 +4,12 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const protocol = require("devtools/shared/protocol");
|
||||
const protocol = require("resource://devtools/shared/protocol.js");
|
||||
const { ActorClassWithSpec, Actor } = protocol;
|
||||
const { cssPropertiesSpec } = require("devtools/shared/specs/css-properties");
|
||||
const { cssColors } = require("devtools/shared/css/color-db");
|
||||
const {
|
||||
cssPropertiesSpec,
|
||||
} = require("resource://devtools/shared/specs/css-properties.js");
|
||||
const { cssColors } = require("resource://devtools/shared/css/color-db.js");
|
||||
const InspectorUtils = require("InspectorUtils");
|
||||
|
||||
loader.lazyRequireGetter(
|
||||
|
|
|
@ -21,16 +21,21 @@
|
|||
* See devtools/docs/backend/actor-hierarchy.md for more details.
|
||||
*/
|
||||
|
||||
const { DevToolsServer } = require("devtools/server/devtools-server");
|
||||
const {
|
||||
DevToolsServer,
|
||||
} = require("resource://devtools/server/devtools-server.js");
|
||||
|
||||
const {
|
||||
createBrowserSessionContext,
|
||||
createContentProcessSessionContext,
|
||||
} = require("devtools/server/actors/watcher/session-context");
|
||||
const { ActorClassWithSpec, Actor } = require("devtools/shared/protocol");
|
||||
} = require("resource://devtools/server/actors/watcher/session-context.js");
|
||||
const {
|
||||
ActorClassWithSpec,
|
||||
Actor,
|
||||
} = require("resource://devtools/shared/protocol.js");
|
||||
const {
|
||||
processDescriptorSpec,
|
||||
} = require("devtools/shared/specs/descriptors/process");
|
||||
} = require("resource://devtools/shared/specs/descriptors/process.js");
|
||||
|
||||
loader.lazyRequireGetter(
|
||||
this,
|
||||
|
|
|
@ -14,21 +14,26 @@
|
|||
|
||||
const {
|
||||
connectToFrame,
|
||||
} = require("devtools/server/connectors/frame-connector");
|
||||
} = require("resource://devtools/server/connectors/frame-connector.js");
|
||||
const lazy = {};
|
||||
ChromeUtils.defineModuleGetter(
|
||||
lazy,
|
||||
"PlacesUtils",
|
||||
"resource://gre/modules/PlacesUtils.jsm"
|
||||
);
|
||||
const { ActorClassWithSpec, Actor } = require("devtools/shared/protocol");
|
||||
const { tabDescriptorSpec } = require("devtools/shared/specs/descriptors/tab");
|
||||
const {
|
||||
ActorClassWithSpec,
|
||||
Actor,
|
||||
} = require("resource://devtools/shared/protocol.js");
|
||||
const {
|
||||
tabDescriptorSpec,
|
||||
} = require("resource://devtools/shared/specs/descriptors/tab.js");
|
||||
const { AppConstants } = ChromeUtils.import(
|
||||
"resource://gre/modules/AppConstants.jsm"
|
||||
);
|
||||
const {
|
||||
createBrowserElementSessionContext,
|
||||
} = require("devtools/server/actors/watcher/session-context");
|
||||
} = require("resource://devtools/server/actors/watcher/session-context.js");
|
||||
|
||||
loader.lazyRequireGetter(
|
||||
this,
|
||||
|
|
|
@ -12,16 +12,16 @@
|
|||
* See devtools/docs/backend/actor-hierarchy.md for more details.
|
||||
*/
|
||||
|
||||
const protocol = require("devtools/shared/protocol");
|
||||
const protocol = require("resource://devtools/shared/protocol.js");
|
||||
const {
|
||||
webExtensionDescriptorSpec,
|
||||
} = require("devtools/shared/specs/descriptors/webextension");
|
||||
} = require("resource://devtools/shared/specs/descriptors/webextension.js");
|
||||
const {
|
||||
connectToFrame,
|
||||
} = require("devtools/server/connectors/frame-connector");
|
||||
} = require("resource://devtools/server/connectors/frame-connector.js");
|
||||
const {
|
||||
createWebExtensionSessionContext,
|
||||
} = require("devtools/server/actors/watcher/session-context");
|
||||
} = require("resource://devtools/server/actors/watcher/session-context.js");
|
||||
|
||||
const lazy = {};
|
||||
ChromeUtils.defineModuleGetter(
|
||||
|
|
|
@ -14,17 +14,19 @@
|
|||
// error packets.
|
||||
/* eslint-disable no-throw-literal */
|
||||
|
||||
const { DevToolsServer } = require("devtools/server/devtools-server");
|
||||
const {
|
||||
DevToolsServer,
|
||||
} = require("resource://devtools/server/devtools-server.js");
|
||||
const { XPCOMUtils } = ChromeUtils.importESModule(
|
||||
"resource://gre/modules/XPCOMUtils.sys.mjs"
|
||||
);
|
||||
const protocol = require("devtools/shared/protocol");
|
||||
const protocol = require("resource://devtools/shared/protocol.js");
|
||||
const {
|
||||
workerDescriptorSpec,
|
||||
} = require("devtools/shared/specs/descriptors/worker");
|
||||
} = require("resource://devtools/shared/specs/descriptors/worker.js");
|
||||
const {
|
||||
createWorkerSessionContext,
|
||||
} = require("devtools/server/actors/watcher/session-context");
|
||||
} = require("resource://devtools/server/actors/watcher/session-context.js");
|
||||
|
||||
loader.lazyRequireGetter(
|
||||
this,
|
||||
|
|
|
@ -4,11 +4,13 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const protocol = require("devtools/shared/protocol");
|
||||
const protocol = require("resource://devtools/shared/protocol.js");
|
||||
|
||||
const { DevToolsServer } = require("devtools/server/devtools-server");
|
||||
const { getSystemInfo } = require("devtools/shared/system");
|
||||
const { deviceSpec } = require("devtools/shared/specs/device");
|
||||
const {
|
||||
DevToolsServer,
|
||||
} = require("resource://devtools/server/devtools-server.js");
|
||||
const { getSystemInfo } = require("resource://devtools/shared/system.js");
|
||||
const { deviceSpec } = require("resource://devtools/shared/specs/device.js");
|
||||
const { AppConstants } = ChromeUtils.import(
|
||||
"resource://gre/modules/AppConstants.jsm"
|
||||
);
|
||||
|
|
|
@ -4,8 +4,10 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const protocol = require("devtools/shared/protocol");
|
||||
const { responsiveSpec } = require("devtools/shared/specs/responsive");
|
||||
const protocol = require("resource://devtools/shared/protocol.js");
|
||||
const {
|
||||
responsiveSpec,
|
||||
} = require("resource://devtools/shared/specs/responsive.js");
|
||||
|
||||
/**
|
||||
* This actor overrides various browser features to simulate different environments to
|
||||
|
|
|
@ -3,9 +3,16 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
"use strict";
|
||||
|
||||
const { ActorClassWithSpec, Actor } = require("devtools/shared/protocol");
|
||||
const { createValueGrip } = require("devtools/server/actors/object/utils");
|
||||
const { environmentSpec } = require("devtools/shared/specs/environment");
|
||||
const {
|
||||
ActorClassWithSpec,
|
||||
Actor,
|
||||
} = require("resource://devtools/shared/protocol.js");
|
||||
const {
|
||||
createValueGrip,
|
||||
} = require("resource://devtools/server/actors/object/utils.js");
|
||||
const {
|
||||
environmentSpec,
|
||||
} = require("resource://devtools/shared/specs/environment.js");
|
||||
|
||||
/**
|
||||
* Creates an EnvironmentActor. EnvironmentActors are responsible for listing
|
||||
|
|
|
@ -5,11 +5,16 @@
|
|||
"use strict";
|
||||
|
||||
const Debugger = require("Debugger");
|
||||
const { assert } = require("devtools/shared/DevToolsUtils");
|
||||
const { Pool } = require("devtools/shared/protocol/Pool");
|
||||
const { createValueGrip } = require("devtools/server/actors/object/utils");
|
||||
const { ActorClassWithSpec, Actor } = require("devtools/shared/protocol");
|
||||
const { frameSpec } = require("devtools/shared/specs/frame");
|
||||
const { assert } = require("resource://devtools/shared/DevToolsUtils.js");
|
||||
const { Pool } = require("resource://devtools/shared/protocol/Pool.js");
|
||||
const {
|
||||
createValueGrip,
|
||||
} = require("resource://devtools/server/actors/object/utils.js");
|
||||
const {
|
||||
ActorClassWithSpec,
|
||||
Actor,
|
||||
} = require("resource://devtools/shared/protocol.js");
|
||||
const { frameSpec } = require("resource://devtools/shared/specs/frame.js");
|
||||
|
||||
function formatDisplayName(frame) {
|
||||
if (frame.type === "call") {
|
||||
|
|
|
@ -4,11 +4,11 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const protocol = require("devtools/shared/protocol");
|
||||
const protocol = require("resource://devtools/shared/protocol.js");
|
||||
|
||||
const {
|
||||
heapSnapshotFileSpec,
|
||||
} = require("devtools/shared/specs/heap-snapshot-file");
|
||||
} = require("resource://devtools/shared/specs/heap-snapshot-file.js");
|
||||
|
||||
loader.lazyRequireGetter(
|
||||
this,
|
||||
|
|
|
@ -6,19 +6,19 @@
|
|||
|
||||
const {
|
||||
AutoRefreshHighlighter,
|
||||
} = require("devtools/server/actors/highlighters/auto-refresh");
|
||||
} = require("resource://devtools/server/actors/highlighters/auto-refresh.js");
|
||||
const {
|
||||
CanvasFrameAnonymousContentHelper,
|
||||
isNodeValid,
|
||||
} = require("devtools/server/actors/highlighters/utils/markup");
|
||||
} = require("resource://devtools/server/actors/highlighters/utils/markup.js");
|
||||
const {
|
||||
TEXT_NODE,
|
||||
DOCUMENT_NODE,
|
||||
} = require("devtools/shared/dom-node-constants");
|
||||
} = require("resource://devtools/shared/dom-node-constants.js");
|
||||
const {
|
||||
getCurrentZoom,
|
||||
setIgnoreLayoutChanges,
|
||||
} = require("devtools/shared/layout/utils");
|
||||
} = require("resource://devtools/shared/layout/utils.js");
|
||||
|
||||
loader.lazyRequireGetter(
|
||||
this,
|
||||
|
|
|
@ -4,14 +4,14 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const EventEmitter = require("devtools/shared/event-emitter");
|
||||
const EventEmitter = require("resource://devtools/shared/event-emitter.js");
|
||||
const {
|
||||
isNodeValid,
|
||||
} = require("devtools/server/actors/highlighters/utils/markup");
|
||||
} = require("resource://devtools/server/actors/highlighters/utils/markup.js");
|
||||
const {
|
||||
getAdjustedQuads,
|
||||
getWindowDimensions,
|
||||
} = require("devtools/shared/layout/utils");
|
||||
} = require("resource://devtools/shared/layout/utils.js");
|
||||
|
||||
// Note that the order of items in this array is important because it is used
|
||||
// for drawing the BoxModelHighlighter's path elements correctly.
|
||||
|
|
|
@ -6,24 +6,26 @@
|
|||
|
||||
const {
|
||||
AutoRefreshHighlighter,
|
||||
} = require("devtools/server/actors/highlighters/auto-refresh");
|
||||
} = require("resource://devtools/server/actors/highlighters/auto-refresh.js");
|
||||
const {
|
||||
CanvasFrameAnonymousContentHelper,
|
||||
getBindingElementAndPseudo,
|
||||
hasPseudoClassLock,
|
||||
isNodeValid,
|
||||
moveInfobar,
|
||||
} = require("devtools/server/actors/highlighters/utils/markup");
|
||||
const { PSEUDO_CLASSES } = require("devtools/shared/css/constants");
|
||||
} = require("resource://devtools/server/actors/highlighters/utils/markup.js");
|
||||
const {
|
||||
PSEUDO_CLASSES,
|
||||
} = require("resource://devtools/shared/css/constants.js");
|
||||
const {
|
||||
getCurrentZoom,
|
||||
setIgnoreLayoutChanges,
|
||||
} = require("devtools/shared/layout/utils");
|
||||
} = require("resource://devtools/shared/layout/utils.js");
|
||||
const {
|
||||
getNodeDisplayName,
|
||||
getNodeGridFlexType,
|
||||
} = require("devtools/server/actors/inspector/utils");
|
||||
const nodeConstants = require("devtools/shared/dom-node-constants");
|
||||
} = require("resource://devtools/server/actors/inspector/utils.js");
|
||||
const nodeConstants = require("resource://devtools/shared/dom-node-constants.js");
|
||||
loader.lazyGetter(this, "HighlightersBundle", () => {
|
||||
return new Localization(["devtools/shared/highlighters.ftl"], true);
|
||||
});
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
const {
|
||||
AutoRefreshHighlighter,
|
||||
} = require("devtools/server/actors/highlighters/auto-refresh");
|
||||
} = require("resource://devtools/server/actors/highlighters/auto-refresh.js");
|
||||
const {
|
||||
CANVAS_SIZE,
|
||||
DEFAULT_COLOR,
|
||||
|
@ -20,22 +20,22 @@ const {
|
|||
getPointsFromDiagonal,
|
||||
updateCanvasElement,
|
||||
updateCanvasPosition,
|
||||
} = require("devtools/server/actors/highlighters/utils/canvas");
|
||||
} = require("resource://devtools/server/actors/highlighters/utils/canvas.js");
|
||||
const {
|
||||
CanvasFrameAnonymousContentHelper,
|
||||
getComputedStyle,
|
||||
moveInfobar,
|
||||
} = require("devtools/server/actors/highlighters/utils/markup");
|
||||
const { apply } = require("devtools/shared/layout/dom-matrix-2d");
|
||||
} = require("resource://devtools/server/actors/highlighters/utils/markup.js");
|
||||
const { apply } = require("resource://devtools/shared/layout/dom-matrix-2d.js");
|
||||
const {
|
||||
getCurrentZoom,
|
||||
getDisplayPixelRatio,
|
||||
getWindowDimensions,
|
||||
setIgnoreLayoutChanges,
|
||||
} = require("devtools/shared/layout/utils");
|
||||
} = require("resource://devtools/shared/layout/utils.js");
|
||||
const {
|
||||
stringifyGridFragments,
|
||||
} = require("devtools/server/actors/utils/css-grid-utils");
|
||||
} = require("resource://devtools/server/actors/utils/css-grid-utils.js");
|
||||
loader.lazyGetter(this, "HighlightersBundle", () => {
|
||||
return new Localization(["devtools/shared/highlighters.ftl"], true);
|
||||
});
|
||||
|
|
|
@ -6,15 +6,15 @@
|
|||
|
||||
const {
|
||||
AutoRefreshHighlighter,
|
||||
} = require("devtools/server/actors/highlighters/auto-refresh");
|
||||
} = require("resource://devtools/server/actors/highlighters/auto-refresh.js");
|
||||
const {
|
||||
CanvasFrameAnonymousContentHelper,
|
||||
getComputedStyle,
|
||||
} = require("devtools/server/actors/highlighters/utils/markup");
|
||||
} = require("resource://devtools/server/actors/highlighters/utils/markup.js");
|
||||
const {
|
||||
setIgnoreLayoutChanges,
|
||||
getNodeBounds,
|
||||
} = require("devtools/shared/layout/utils");
|
||||
} = require("resource://devtools/shared/layout/utils.js");
|
||||
|
||||
// The minimum distance a line should be before it has an arrow marker-end
|
||||
const ARROW_LINE_MIN_DISTANCE = 10;
|
||||
|
|
|
@ -10,16 +10,16 @@
|
|||
|
||||
const {
|
||||
CanvasFrameAnonymousContentHelper,
|
||||
} = require("devtools/server/actors/highlighters/utils/markup");
|
||||
const EventEmitter = require("devtools/shared/event-emitter");
|
||||
} = require("resource://devtools/server/actors/highlighters/utils/markup.js");
|
||||
const EventEmitter = require("resource://devtools/shared/event-emitter.js");
|
||||
const {
|
||||
rgbToHsl,
|
||||
rgbToColorName,
|
||||
} = require("devtools/shared/css/color").colorUtils;
|
||||
} = require("resource://devtools/shared/css/color.js").colorUtils;
|
||||
const {
|
||||
getCurrentZoom,
|
||||
getFrameOffsets,
|
||||
} = require("devtools/shared/layout/utils");
|
||||
} = require("resource://devtools/shared/layout/utils.js");
|
||||
|
||||
loader.lazyGetter(this, "clipboardHelper", () =>
|
||||
Cc["@mozilla.org/widget/clipboardhelper;1"].getService(Ci.nsIClipboardHelper)
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
|
||||
const {
|
||||
AutoRefreshHighlighter,
|
||||
} = require("devtools/server/actors/highlighters/auto-refresh");
|
||||
const { apply } = require("devtools/shared/layout/dom-matrix-2d");
|
||||
} = require("resource://devtools/server/actors/highlighters/auto-refresh.js");
|
||||
const { apply } = require("resource://devtools/shared/layout/dom-matrix-2d.js");
|
||||
const {
|
||||
CANVAS_SIZE,
|
||||
DEFAULT_COLOR,
|
||||
|
@ -17,11 +17,11 @@ const {
|
|||
getCurrentMatrix,
|
||||
updateCanvasElement,
|
||||
updateCanvasPosition,
|
||||
} = require("devtools/server/actors/highlighters/utils/canvas");
|
||||
} = require("resource://devtools/server/actors/highlighters/utils/canvas.js");
|
||||
const {
|
||||
CanvasFrameAnonymousContentHelper,
|
||||
getComputedStyle,
|
||||
} = require("devtools/server/actors/highlighters/utils/markup");
|
||||
} = require("resource://devtools/server/actors/highlighters/utils/markup.js");
|
||||
const {
|
||||
getAbsoluteScrollOffsetsForNode,
|
||||
getCurrentZoom,
|
||||
|
@ -29,7 +29,7 @@ const {
|
|||
getUntransformedQuad,
|
||||
getWindowDimensions,
|
||||
setIgnoreLayoutChanges,
|
||||
} = require("devtools/shared/layout/utils");
|
||||
} = require("resource://devtools/shared/layout/utils.js");
|
||||
|
||||
const FLEXBOX_LINES_PROPERTIES = {
|
||||
edge: {
|
||||
|
|
|
@ -6,16 +6,18 @@
|
|||
|
||||
const {
|
||||
AutoRefreshHighlighter,
|
||||
} = require("devtools/server/actors/highlighters/auto-refresh");
|
||||
} = require("resource://devtools/server/actors/highlighters/auto-refresh.js");
|
||||
const {
|
||||
CanvasFrameAnonymousContentHelper,
|
||||
getComputedStyle,
|
||||
} = require("devtools/server/actors/highlighters/utils/markup");
|
||||
} = require("resource://devtools/server/actors/highlighters/utils/markup.js");
|
||||
const {
|
||||
setIgnoreLayoutChanges,
|
||||
getAdjustedQuads,
|
||||
} = require("devtools/shared/layout/utils");
|
||||
const { getCSSStyleRules } = require("devtools/shared/inspector/css-logic");
|
||||
} = require("resource://devtools/shared/layout/utils.js");
|
||||
const {
|
||||
getCSSStyleRules,
|
||||
} = require("resource://devtools/shared/inspector/css-logic.js");
|
||||
|
||||
const GEOMETRY_LABEL_SIZE = 6;
|
||||
|
||||
|
|
|
@ -4,15 +4,15 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const EventEmitter = require("devtools/shared/event-emitter");
|
||||
const EventEmitter = require("resource://devtools/shared/event-emitter.js");
|
||||
const {
|
||||
getCurrentZoom,
|
||||
getWindowDimensions,
|
||||
setIgnoreLayoutChanges,
|
||||
} = require("devtools/shared/layout/utils");
|
||||
} = require("resource://devtools/shared/layout/utils.js");
|
||||
const {
|
||||
CanvasFrameAnonymousContentHelper,
|
||||
} = require("devtools/server/actors/highlighters/utils/markup");
|
||||
} = require("resource://devtools/server/actors/highlighters/utils/markup.js");
|
||||
|
||||
// Hard coded value about the size of measuring tool label, in order to
|
||||
// position and flip it when is needed.
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
const {
|
||||
CanvasFrameAnonymousContentHelper,
|
||||
} = require("devtools/server/actors/highlighters/utils/markup");
|
||||
} = require("resource://devtools/server/actors/highlighters/utils/markup.js");
|
||||
|
||||
loader.lazyGetter(this, "PausedReasonsBundle", () => {
|
||||
return new Localization(
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
const {
|
||||
CanvasFrameAnonymousContentHelper,
|
||||
} = require("devtools/server/actors/highlighters/utils/markup");
|
||||
} = require("resource://devtools/server/actors/highlighters/utils/markup.js");
|
||||
|
||||
loader.lazyGetter(this, "HighlightersBundle", () => {
|
||||
return new Localization(["devtools/shared/highlighters.ftl"], true);
|
||||
|
|
|
@ -4,14 +4,14 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const EventEmitter = require("devtools/shared/event-emitter");
|
||||
const EventEmitter = require("resource://devtools/shared/event-emitter.js");
|
||||
const {
|
||||
getCurrentZoom,
|
||||
setIgnoreLayoutChanges,
|
||||
} = require("devtools/shared/layout/utils");
|
||||
} = require("resource://devtools/shared/layout/utils.js");
|
||||
const {
|
||||
CanvasFrameAnonymousContentHelper,
|
||||
} = require("devtools/server/actors/highlighters/utils/markup");
|
||||
} = require("resource://devtools/server/actors/highlighters/utils/markup.js");
|
||||
|
||||
// Maximum size, in pixel, for the horizontal ruler and vertical ruler
|
||||
// used by RulersHighlighter
|
||||
|
|
|
@ -6,10 +6,10 @@
|
|||
|
||||
const {
|
||||
isNodeValid,
|
||||
} = require("devtools/server/actors/highlighters/utils/markup");
|
||||
} = require("resource://devtools/server/actors/highlighters/utils/markup.js");
|
||||
const {
|
||||
BoxModelHighlighter,
|
||||
} = require("devtools/server/actors/highlighters/box-model");
|
||||
} = require("resource://devtools/server/actors/highlighters/box-model.js");
|
||||
|
||||
// How many maximum nodes can be highlighted at the same time by the SelectorHighlighter
|
||||
const MAX_HIGHLIGHTED_ELEMENTS = 100;
|
||||
|
|
|
@ -7,23 +7,23 @@
|
|||
const {
|
||||
CanvasFrameAnonymousContentHelper,
|
||||
getComputedStyle,
|
||||
} = require("devtools/server/actors/highlighters/utils/markup");
|
||||
} = require("resource://devtools/server/actors/highlighters/utils/markup.js");
|
||||
const {
|
||||
setIgnoreLayoutChanges,
|
||||
getCurrentZoom,
|
||||
getAdjustedQuads,
|
||||
getFrameOffsets,
|
||||
} = require("devtools/shared/layout/utils");
|
||||
} = require("resource://devtools/shared/layout/utils.js");
|
||||
const {
|
||||
AutoRefreshHighlighter,
|
||||
} = require("devtools/server/actors/highlighters/auto-refresh");
|
||||
} = require("resource://devtools/server/actors/highlighters/auto-refresh.js");
|
||||
const {
|
||||
getDistance,
|
||||
clickedOnEllipseEdge,
|
||||
distanceToLine,
|
||||
projection,
|
||||
clickedOnPoint,
|
||||
} = require("devtools/server/actors/utils/shapes-utils");
|
||||
} = require("resource://devtools/server/actors/utils/shapes-utils.js");
|
||||
const {
|
||||
identity,
|
||||
apply,
|
||||
|
@ -33,9 +33,11 @@ const {
|
|||
rotate,
|
||||
changeMatrixBase,
|
||||
getBasis,
|
||||
} = require("devtools/shared/layout/dom-matrix-2d");
|
||||
const EventEmitter = require("devtools/shared/event-emitter");
|
||||
const { getCSSStyleRules } = require("devtools/shared/inspector/css-logic");
|
||||
} = require("resource://devtools/shared/layout/dom-matrix-2d.js");
|
||||
const EventEmitter = require("resource://devtools/shared/event-emitter.js");
|
||||
const {
|
||||
getCSSStyleRules,
|
||||
} = require("resource://devtools/shared/inspector/css-logic.js");
|
||||
|
||||
const BASE_MARKER_SIZE = 5;
|
||||
// the width of the area around highlighter lines that can be clicked, in px
|
||||
|
|
|
@ -4,12 +4,16 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const DevToolsUtils = require("devtools/shared/DevToolsUtils");
|
||||
const { getCurrentZoom } = require("devtools/shared/layout/utils");
|
||||
const DevToolsUtils = require("resource://devtools/shared/DevToolsUtils.js");
|
||||
const {
|
||||
getCurrentZoom,
|
||||
} = require("resource://devtools/shared/layout/utils.js");
|
||||
const {
|
||||
moveInfobar,
|
||||
} = require("devtools/server/actors/highlighters/utils/markup");
|
||||
const { truncateString } = require("devtools/shared/inspector/utils");
|
||||
} = require("resource://devtools/server/actors/highlighters/utils/markup.js");
|
||||
const {
|
||||
truncateString,
|
||||
} = require("resource://devtools/shared/inspector/utils.js");
|
||||
|
||||
const STRINGS_URI = "devtools/shared/locales/accessibility.properties";
|
||||
loader.lazyRequireGetter(
|
||||
|
@ -59,7 +63,7 @@ const {
|
|||
},
|
||||
SCORES,
|
||||
},
|
||||
} = require("devtools/shared/constants");
|
||||
} = require("resource://devtools/shared/constants.js");
|
||||
|
||||
// Max string length for truncating accessible name values.
|
||||
const MAX_STRING_LENGTH = 50;
|
||||
|
|
|
@ -13,14 +13,14 @@ const {
|
|||
multiply,
|
||||
scale,
|
||||
translate,
|
||||
} = require("devtools/shared/layout/dom-matrix-2d");
|
||||
} = require("resource://devtools/shared/layout/dom-matrix-2d.js");
|
||||
const {
|
||||
getCurrentZoom,
|
||||
getViewportDimensions,
|
||||
} = require("devtools/shared/layout/utils");
|
||||
} = require("resource://devtools/shared/layout/utils.js");
|
||||
const {
|
||||
getComputedStyle,
|
||||
} = require("devtools/server/actors/highlighters/utils/markup");
|
||||
} = require("resource://devtools/server/actors/highlighters/utils/markup.js");
|
||||
|
||||
// A set of utility functions for highlighters that render their content to a <canvas>
|
||||
// element.
|
||||
|
|
|
@ -10,8 +10,8 @@ const {
|
|||
getViewportDimensions,
|
||||
loadSheet,
|
||||
removeSheet,
|
||||
} = require("devtools/shared/layout/utils");
|
||||
const EventEmitter = require("devtools/shared/event-emitter");
|
||||
} = require("resource://devtools/shared/layout/utils.js");
|
||||
const EventEmitter = require("resource://devtools/shared/event-emitter.js");
|
||||
const InspectorUtils = require("InspectorUtils");
|
||||
|
||||
const lazyContainer = {};
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const nodeConstants = require("devtools/shared/dom-node-constants");
|
||||
const nodeConstants = require("resource://devtools/shared/dom-node-constants.js");
|
||||
const {
|
||||
getBindingElementAndPseudo,
|
||||
getCSSStyleRules,
|
||||
|
@ -39,7 +39,7 @@ const {
|
|||
shortSource,
|
||||
FILTER,
|
||||
STATUS,
|
||||
} = require("devtools/shared/inspector/css-logic");
|
||||
} = require("resource://devtools/shared/inspector/css-logic.js");
|
||||
const InspectorUtils = require("InspectorUtils");
|
||||
|
||||
const COMPAREMODE = {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
"use strict";
|
||||
|
||||
const InspectorUtils = require("InspectorUtils");
|
||||
const EventEmitter = require("devtools/shared/event-emitter");
|
||||
const EventEmitter = require("resource://devtools/shared/event-emitter.js");
|
||||
|
||||
/**
|
||||
* The CustomElementWatcher can be used to be notified if a custom element definition
|
||||
|
|
|
@ -12,11 +12,11 @@ const {
|
|||
isBeforePseudoElement,
|
||||
isMarkerPseudoElement,
|
||||
isNativeAnonymous,
|
||||
} = require("devtools/shared/layout/utils");
|
||||
} = require("resource://devtools/shared/layout/utils.js");
|
||||
const Debugger = require("Debugger");
|
||||
const {
|
||||
EXCLUDED_LISTENER,
|
||||
} = require("devtools/server/actors/inspector/constants");
|
||||
} = require("resource://devtools/server/actors/inspector/constants.js");
|
||||
|
||||
// eslint-disable-next-line
|
||||
const JQUERY_LIVE_REGEX = /return typeof \w+.*.event\.triggered[\s\S]*\.event\.(dispatch|handle).*arguments/;
|
||||
|
|
|
@ -51,10 +51,14 @@
|
|||
*/
|
||||
|
||||
const { setTimeout } = ChromeUtils.import("resource://gre/modules/Timer.jsm");
|
||||
const protocol = require("devtools/shared/protocol");
|
||||
const { LongStringActor } = require("devtools/server/actors/string");
|
||||
const protocol = require("resource://devtools/shared/protocol.js");
|
||||
const {
|
||||
LongStringActor,
|
||||
} = require("resource://devtools/server/actors/string.js");
|
||||
|
||||
const { inspectorSpec } = require("devtools/shared/specs/inspector");
|
||||
const {
|
||||
inspectorSpec,
|
||||
} = require("resource://devtools/shared/specs/inspector.js");
|
||||
|
||||
loader.lazyRequireGetter(
|
||||
this,
|
||||
|
|
|
@ -5,9 +5,14 @@
|
|||
"use strict";
|
||||
|
||||
const InspectorUtils = require("InspectorUtils");
|
||||
const protocol = require("devtools/shared/protocol");
|
||||
const { PSEUDO_CLASSES } = require("devtools/shared/css/constants");
|
||||
const { nodeSpec, nodeListSpec } = require("devtools/shared/specs/node");
|
||||
const protocol = require("resource://devtools/shared/protocol.js");
|
||||
const {
|
||||
PSEUDO_CLASSES,
|
||||
} = require("resource://devtools/shared/css/constants.js");
|
||||
const {
|
||||
nodeSpec,
|
||||
nodeListSpec,
|
||||
} = require("resource://devtools/shared/specs/node.js");
|
||||
|
||||
loader.lazyRequireGetter(
|
||||
this,
|
||||
|
|
|
@ -4,13 +4,15 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const protocol = require("devtools/shared/protocol");
|
||||
const { walkerSpec } = require("devtools/shared/specs/walker");
|
||||
const { LongStringActor } = require("devtools/server/actors/string");
|
||||
const protocol = require("resource://devtools/shared/protocol.js");
|
||||
const { walkerSpec } = require("resource://devtools/shared/specs/walker.js");
|
||||
const {
|
||||
LongStringActor,
|
||||
} = require("resource://devtools/server/actors/string.js");
|
||||
const InspectorUtils = require("InspectorUtils");
|
||||
const {
|
||||
EXCLUDED_LISTENER,
|
||||
} = require("devtools/server/actors/inspector/constants");
|
||||
} = require("resource://devtools/server/actors/inspector/constants.js");
|
||||
|
||||
loader.lazyRequireGetter(
|
||||
this,
|
||||
|
|
|
@ -4,16 +4,19 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const { Actor, ActorClassWithSpec } = require("devtools/shared/protocol");
|
||||
const {
|
||||
Actor,
|
||||
ActorClassWithSpec,
|
||||
} = require("resource://devtools/shared/protocol.js");
|
||||
const {
|
||||
flexboxSpec,
|
||||
flexItemSpec,
|
||||
gridSpec,
|
||||
layoutSpec,
|
||||
} = require("devtools/shared/specs/layout");
|
||||
} = require("resource://devtools/shared/specs/layout.js");
|
||||
const {
|
||||
getStringifiableFragments,
|
||||
} = require("devtools/server/actors/utils/css-grid-utils");
|
||||
} = require("resource://devtools/server/actors/utils/css-grid-utils.js");
|
||||
|
||||
loader.lazyRequireGetter(
|
||||
this,
|
||||
|
|
|
@ -4,8 +4,13 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const { Actor, ActorClassWithSpec } = require("devtools/shared/protocol");
|
||||
const { manifestSpec } = require("devtools/shared/specs/manifest");
|
||||
const {
|
||||
Actor,
|
||||
ActorClassWithSpec,
|
||||
} = require("resource://devtools/shared/protocol.js");
|
||||
const {
|
||||
manifestSpec,
|
||||
} = require("resource://devtools/shared/specs/manifest.js");
|
||||
|
||||
const lazy = {};
|
||||
|
||||
|
|
|
@ -4,8 +4,10 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const protocol = require("devtools/shared/protocol");
|
||||
const { mediaRuleSpec } = require("devtools/shared/specs/media-rule");
|
||||
const protocol = require("resource://devtools/shared/protocol.js");
|
||||
const {
|
||||
mediaRuleSpec,
|
||||
} = require("resource://devtools/shared/specs/media-rule.js");
|
||||
const InspectorUtils = require("InspectorUtils");
|
||||
|
||||
/**
|
||||
|
|
|
@ -4,10 +4,12 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const protocol = require("devtools/shared/protocol");
|
||||
const { Memory } = require("devtools/server/performance/memory");
|
||||
const { actorBridgeWithSpec } = require("devtools/server/actors/common");
|
||||
const { memorySpec } = require("devtools/shared/specs/memory");
|
||||
const protocol = require("resource://devtools/shared/protocol.js");
|
||||
const { Memory } = require("resource://devtools/server/performance/memory.js");
|
||||
const {
|
||||
actorBridgeWithSpec,
|
||||
} = require("resource://devtools/server/actors/common.js");
|
||||
const { memorySpec } = require("resource://devtools/shared/specs/memory.js");
|
||||
loader.lazyRequireGetter(
|
||||
this,
|
||||
"StackFrameCache",
|
||||
|
|
|
@ -4,9 +4,16 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const { Actor, ActorClassWithSpec } = require("devtools/shared/protocol");
|
||||
const { eventSourceSpec } = require("devtools/shared/specs/eventsource");
|
||||
const { LongStringActor } = require("devtools/server/actors/string");
|
||||
const {
|
||||
Actor,
|
||||
ActorClassWithSpec,
|
||||
} = require("resource://devtools/shared/protocol.js");
|
||||
const {
|
||||
eventSourceSpec,
|
||||
} = require("resource://devtools/shared/specs/eventsource.js");
|
||||
const {
|
||||
LongStringActor,
|
||||
} = require("resource://devtools/server/actors/string.js");
|
||||
|
||||
const eventSourceEventService = Cc[
|
||||
"@mozilla.org/eventsourceevent/service;1"
|
||||
|
|
|
@ -4,8 +4,13 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const { ActorClassWithSpec, Actor } = require("devtools/shared/protocol");
|
||||
const { networkContentSpec } = require("devtools/shared/specs/network-content");
|
||||
const {
|
||||
ActorClassWithSpec,
|
||||
Actor,
|
||||
} = require("resource://devtools/shared/protocol.js");
|
||||
const {
|
||||
networkContentSpec,
|
||||
} = require("resource://devtools/shared/specs/network-content.js");
|
||||
|
||||
const lazy = {};
|
||||
ChromeUtils.defineModuleGetter(
|
||||
|
@ -30,7 +35,7 @@ loader.lazyRequireGetter(
|
|||
const {
|
||||
TYPES: { NETWORK_EVENT_STACKTRACE },
|
||||
getResourceWatcher,
|
||||
} = require("devtools/server/actors/resources/index");
|
||||
} = require("resource://devtools/server/actors/resources/index.js");
|
||||
|
||||
/**
|
||||
* This actor manages all network functionality runnning
|
||||
|
|
|
@ -6,11 +6,15 @@
|
|||
|
||||
const {
|
||||
TYPES: { NETWORK_EVENT },
|
||||
} = require("devtools/server/actors/resources/index");
|
||||
} = require("resource://devtools/server/actors/resources/index.js");
|
||||
|
||||
const protocol = require("devtools/shared/protocol");
|
||||
const { networkEventSpec } = require("devtools/shared/specs/network-event");
|
||||
const { LongStringActor } = require("devtools/server/actors/string");
|
||||
const protocol = require("resource://devtools/shared/protocol.js");
|
||||
const {
|
||||
networkEventSpec,
|
||||
} = require("resource://devtools/shared/specs/network-event.js");
|
||||
const {
|
||||
LongStringActor,
|
||||
} = require("resource://devtools/server/actors/string.js");
|
||||
|
||||
/**
|
||||
* Creates an actor for a network event.
|
||||
|
|
|
@ -4,9 +4,13 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const protocol = require("devtools/shared/protocol");
|
||||
const { networkEventSpec } = require("devtools/shared/specs/network-event");
|
||||
const { LongStringActor } = require("devtools/server/actors/string");
|
||||
const protocol = require("resource://devtools/shared/protocol.js");
|
||||
const {
|
||||
networkEventSpec,
|
||||
} = require("resource://devtools/shared/specs/network-event.js");
|
||||
const {
|
||||
LongStringActor,
|
||||
} = require("resource://devtools/server/actors/string.js");
|
||||
|
||||
/**
|
||||
* Creates an actor for a network event.
|
||||
|
|
|
@ -4,8 +4,13 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const { Actor, ActorClassWithSpec } = require("devtools/shared/protocol");
|
||||
const { networkMonitorSpec } = require("devtools/shared/specs/network-monitor");
|
||||
const {
|
||||
Actor,
|
||||
ActorClassWithSpec,
|
||||
} = require("resource://devtools/shared/protocol.js");
|
||||
const {
|
||||
networkMonitorSpec,
|
||||
} = require("resource://devtools/shared/specs/network-monitor.js");
|
||||
|
||||
loader.lazyRequireGetter(
|
||||
this,
|
||||
|
|
|
@ -4,13 +4,18 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const { ActorClassWithSpec, Actor } = require("devtools/shared/protocol");
|
||||
const { networkParentSpec } = require("devtools/shared/specs/network-parent");
|
||||
const {
|
||||
ActorClassWithSpec,
|
||||
Actor,
|
||||
} = require("resource://devtools/shared/protocol.js");
|
||||
const {
|
||||
networkParentSpec,
|
||||
} = require("resource://devtools/shared/specs/network-parent.js");
|
||||
|
||||
const {
|
||||
TYPES: { NETWORK_EVENT },
|
||||
getResourceWatcher,
|
||||
} = require("devtools/server/actors/resources/index");
|
||||
} = require("resource://devtools/server/actors/resources/index.js");
|
||||
|
||||
/**
|
||||
* This actor manages all network functionality running
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
const {
|
||||
wildcardToRegExp,
|
||||
} = require("devtools/server/actors/network-monitor/utils/wildcard-to-regexp");
|
||||
} = require("resource://devtools/server/actors/network-monitor/utils/wildcard-to-regexp.js");
|
||||
|
||||
loader.lazyRequireGetter(
|
||||
this,
|
||||
|
|
|
@ -4,9 +4,16 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const { Actor, ActorClassWithSpec } = require("devtools/shared/protocol");
|
||||
const { webSocketSpec } = require("devtools/shared/specs/websocket");
|
||||
const { LongStringActor } = require("devtools/server/actors/string");
|
||||
const {
|
||||
Actor,
|
||||
ActorClassWithSpec,
|
||||
} = require("resource://devtools/shared/protocol.js");
|
||||
const {
|
||||
webSocketSpec,
|
||||
} = require("resource://devtools/shared/specs/websocket.js");
|
||||
const {
|
||||
LongStringActor,
|
||||
} = require("resource://devtools/server/actors/string.js");
|
||||
|
||||
const webSocketEventService = Cc[
|
||||
"@mozilla.org/websocketevent/service;1"
|
||||
|
|
|
@ -4,11 +4,11 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const DevToolsUtils = require("devtools/shared/DevToolsUtils");
|
||||
const DevToolsUtils = require("resource://devtools/shared/DevToolsUtils.js");
|
||||
const { assert } = DevToolsUtils;
|
||||
|
||||
const protocol = require("devtools/shared/protocol");
|
||||
const { objectSpec } = require("devtools/shared/specs/object");
|
||||
const protocol = require("resource://devtools/shared/protocol.js");
|
||||
const { objectSpec } = require("resource://devtools/shared/specs/object.js");
|
||||
|
||||
loader.lazyRequireGetter(
|
||||
this,
|
||||
|
@ -58,7 +58,7 @@ const {
|
|||
isArray,
|
||||
isStorage,
|
||||
isTypedArray,
|
||||
} = require("devtools/server/actors/object/utils");
|
||||
} = require("resource://devtools/server/actors/object/utils.js");
|
||||
|
||||
const proto = {
|
||||
/**
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const { DevToolsServer } = require("devtools/server/devtools-server");
|
||||
const DevToolsUtils = require("devtools/shared/DevToolsUtils");
|
||||
const { DevToolsServer } = require("resource://devtools/server/devtools-server.js");
|
||||
const DevToolsUtils = require("resource://devtools/shared/DevToolsUtils.js");
|
||||
loader.lazyRequireGetter(
|
||||
this,
|
||||
"ObjectUtils",
|
||||
|
|
|
@ -4,11 +4,11 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const protocol = require("devtools/shared/protocol");
|
||||
const protocol = require("resource://devtools/shared/protocol.js");
|
||||
const {
|
||||
privatePropertiesIteratorSpec,
|
||||
} = require("devtools/shared/specs/private-properties-iterator");
|
||||
const DevToolsUtils = require("devtools/shared/DevToolsUtils");
|
||||
} = require("resource://devtools/shared/specs/private-properties-iterator.js");
|
||||
const DevToolsUtils = require("resource://devtools/shared/DevToolsUtils.js");
|
||||
|
||||
/**
|
||||
* Creates an actor to iterate over an object's private properties.
|
||||
|
|
|
@ -4,11 +4,11 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const DevToolsUtils = require("devtools/shared/DevToolsUtils");
|
||||
const protocol = require("devtools/shared/protocol");
|
||||
const DevToolsUtils = require("resource://devtools/shared/DevToolsUtils.js");
|
||||
const protocol = require("resource://devtools/shared/protocol.js");
|
||||
const {
|
||||
propertyIteratorSpec,
|
||||
} = require("devtools/shared/specs/property-iterator");
|
||||
} = require("resource://devtools/shared/specs/property-iterator.js");
|
||||
loader.lazyRequireGetter(
|
||||
this,
|
||||
"ObjectUtils",
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const protocol = require("devtools/shared/protocol");
|
||||
const { symbolIteratorSpec } = require("devtools/shared/specs/symbol-iterator");
|
||||
const DevToolsUtils = require("devtools/shared/DevToolsUtils");
|
||||
const protocol = require("resource://devtools/shared/protocol.js");
|
||||
const { symbolIteratorSpec } = require("resource://devtools/shared/specs/symbol-iterator.js");
|
||||
const DevToolsUtils = require("resource://devtools/shared/DevToolsUtils.js");
|
||||
|
||||
/**
|
||||
* Creates an actor to iterate over an object's symbols.
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const protocol = require("devtools/shared/protocol");
|
||||
const { symbolSpec } = require("devtools/shared/specs/symbol");
|
||||
const protocol = require("resource://devtools/shared/protocol.js");
|
||||
const { symbolSpec } = require("resource://devtools/shared/specs/symbol.js");
|
||||
loader.lazyRequireGetter(
|
||||
this,
|
||||
"createValueGrip",
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const { DevToolsServer } = require("devtools/server/devtools-server");
|
||||
const DevToolsUtils = require("devtools/shared/DevToolsUtils");
|
||||
const { DevToolsServer } = require("resource://devtools/server/devtools-server.js");
|
||||
const DevToolsUtils = require("resource://devtools/shared/DevToolsUtils.js");
|
||||
const { assert } = DevToolsUtils;
|
||||
|
||||
loader.lazyRequireGetter(
|
||||
|
|
|
@ -4,20 +4,24 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const protocol = require("devtools/shared/protocol");
|
||||
const { getCSSLexer } = require("devtools/shared/css/lexer");
|
||||
const { LongStringActor } = require("devtools/server/actors/string");
|
||||
const protocol = require("resource://devtools/shared/protocol.js");
|
||||
const { getCSSLexer } = require("resource://devtools/shared/css/lexer.js");
|
||||
const {
|
||||
LongStringActor,
|
||||
} = require("resource://devtools/server/actors/string.js");
|
||||
const InspectorUtils = require("InspectorUtils");
|
||||
const TrackChangeEmitter = require("devtools/server/actors/utils/track-change-emitter");
|
||||
const TrackChangeEmitter = require("resource://devtools/server/actors/utils/track-change-emitter.js");
|
||||
|
||||
const { pageStyleSpec } = require("devtools/shared/specs/page-style");
|
||||
const {
|
||||
pageStyleSpec,
|
||||
} = require("resource://devtools/shared/specs/page-style.js");
|
||||
const {
|
||||
style: { ELEMENT_STYLE },
|
||||
} = require("devtools/shared/constants");
|
||||
} = require("resource://devtools/shared/constants.js");
|
||||
|
||||
const {
|
||||
hasStyleSheetWatcherSupportForTarget,
|
||||
} = require("devtools/server/actors/utils/stylesheets-manager");
|
||||
} = require("resource://devtools/server/actors/utils/stylesheets-manager.js");
|
||||
|
||||
loader.lazyRequireGetter(
|
||||
this,
|
||||
|
|
|
@ -4,11 +4,13 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const { extend } = require("devtools/shared/extend");
|
||||
const { ObjectActorProto } = require("devtools/server/actors/object");
|
||||
const protocol = require("devtools/shared/protocol");
|
||||
const { extend } = require("resource://devtools/shared/extend.js");
|
||||
const {
|
||||
ObjectActorProto,
|
||||
} = require("resource://devtools/server/actors/object.js");
|
||||
const protocol = require("resource://devtools/shared/protocol.js");
|
||||
const { ActorClassWithSpec } = protocol;
|
||||
const { objectSpec } = require("devtools/shared/specs/object");
|
||||
const { objectSpec } = require("resource://devtools/shared/specs/object.js");
|
||||
|
||||
/**
|
||||
* Protocol.js expects only the prototype object, and does not maintain the prototype
|
||||
|
|
|
@ -3,13 +3,15 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
"use strict";
|
||||
|
||||
const protocol = require("devtools/shared/protocol");
|
||||
const protocol = require("resource://devtools/shared/protocol.js");
|
||||
const { ActorClassWithSpec, Actor } = protocol;
|
||||
const { actorBridgeWithSpec } = require("devtools/server/actors/common");
|
||||
const { perfSpec } = require("devtools/shared/specs/perf");
|
||||
const {
|
||||
actorBridgeWithSpec,
|
||||
} = require("resource://devtools/server/actors/common.js");
|
||||
const { perfSpec } = require("resource://devtools/shared/specs/perf.js");
|
||||
const {
|
||||
ActorReadyGeckoProfilerInterface,
|
||||
} = require("devtools/shared/performance-new/gecko-profiler-interface");
|
||||
} = require("resource://devtools/shared/performance-new/gecko-profiler-interface.js");
|
||||
|
||||
/**
|
||||
* Pass on the events from the bridge to the actor.
|
||||
|
|
|
@ -4,8 +4,10 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const protocol = require("devtools/shared/protocol");
|
||||
const { preferenceSpec } = require("devtools/shared/specs/preference");
|
||||
const protocol = require("resource://devtools/shared/protocol.js");
|
||||
const {
|
||||
preferenceSpec,
|
||||
} = require("resource://devtools/shared/specs/preference.js");
|
||||
|
||||
const { PREF_STRING, PREF_INT, PREF_BOOL } = Services.prefs;
|
||||
|
||||
|
|
|
@ -24,9 +24,9 @@
|
|||
* These dedicated classes are used by the LayoutChangesObserver.
|
||||
*/
|
||||
|
||||
const protocol = require("devtools/shared/protocol");
|
||||
const EventEmitter = require("devtools/shared/event-emitter");
|
||||
const { reflowSpec } = require("devtools/shared/specs/reflow");
|
||||
const protocol = require("resource://devtools/shared/protocol.js");
|
||||
const EventEmitter = require("resource://devtools/shared/event-emitter.js");
|
||||
const { reflowSpec } = require("resource://devtools/shared/specs/reflow.js");
|
||||
|
||||
/**
|
||||
* The reflow actor tracks reflows and emits events about them.
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
|
||||
const {
|
||||
TYPES: { CSS_CHANGE },
|
||||
} = require("devtools/server/actors/resources/index");
|
||||
const TrackChangeEmitter = require("devtools/server/actors/utils/track-change-emitter");
|
||||
} = require("resource://devtools/server/actors/resources/index.js");
|
||||
const TrackChangeEmitter = require("resource://devtools/server/actors/utils/track-change-emitter.js");
|
||||
|
||||
/**
|
||||
* Start watching for all css changes related to a given Target Actor.
|
||||
|
|
|
@ -4,19 +4,25 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const nsIConsoleListenerWatcher = require("devtools/server/actors/resources/utils/nsi-console-listener-watcher");
|
||||
const { DevToolsServer } = require("devtools/server/devtools-server");
|
||||
const { createStringGrip } = require("devtools/server/actors/object/utils");
|
||||
const nsIConsoleListenerWatcher = require("resource://devtools/server/actors/resources/utils/nsi-console-listener-watcher.js");
|
||||
const {
|
||||
DevToolsServer,
|
||||
} = require("resource://devtools/server/devtools-server.js");
|
||||
const {
|
||||
createStringGrip,
|
||||
} = require("resource://devtools/server/actors/object/utils.js");
|
||||
const {
|
||||
getActorIdForInternalSourceId,
|
||||
} = require("devtools/server/actors/utils/dbg-source");
|
||||
const { WebConsoleUtils } = require("devtools/server/actors/webconsole/utils");
|
||||
} = require("resource://devtools/server/actors/utils/dbg-source.js");
|
||||
const {
|
||||
WebConsoleUtils,
|
||||
} = require("resource://devtools/server/actors/webconsole/utils.js");
|
||||
|
||||
const {
|
||||
TYPES: { CSS_MESSAGE },
|
||||
} = require("devtools/server/actors/resources/index");
|
||||
} = require("resource://devtools/server/actors/resources/index.js");
|
||||
|
||||
const { MESSAGE_CATEGORY } = require("devtools/shared/constants");
|
||||
const { MESSAGE_CATEGORY } = require("resource://devtools/shared/constants.js");
|
||||
|
||||
class CSSMessageWatcher extends nsIConsoleListenerWatcher {
|
||||
/**
|
||||
|
|
|
@ -6,10 +6,10 @@
|
|||
|
||||
const {
|
||||
TYPES: { DOCUMENT_EVENT },
|
||||
} = require("devtools/server/actors/resources/index");
|
||||
} = require("resource://devtools/server/actors/resources/index.js");
|
||||
const {
|
||||
DocumentEventsListener,
|
||||
} = require("devtools/server/actors/webconsole/listeners/document-events");
|
||||
} = require("resource://devtools/server/actors/webconsole/listeners/document-events.js");
|
||||
|
||||
class DocumentEventWatcher {
|
||||
#abortController = new AbortController();
|
||||
|
|
|
@ -4,25 +4,29 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const nsIConsoleListenerWatcher = require("devtools/server/actors/resources/utils/nsi-console-listener-watcher");
|
||||
const { DevToolsServer } = require("devtools/server/devtools-server");
|
||||
const ErrorDocs = require("devtools/server/actors/errordocs");
|
||||
const nsIConsoleListenerWatcher = require("resource://devtools/server/actors/resources/utils/nsi-console-listener-watcher.js");
|
||||
const {
|
||||
DevToolsServer,
|
||||
} = require("resource://devtools/server/devtools-server.js");
|
||||
const ErrorDocs = require("resource://devtools/server/actors/errordocs.js");
|
||||
const {
|
||||
createStringGrip,
|
||||
makeDebuggeeValue,
|
||||
createValueGripForTarget,
|
||||
} = require("devtools/server/actors/object/utils");
|
||||
} = require("resource://devtools/server/actors/object/utils.js");
|
||||
const {
|
||||
getActorIdForInternalSourceId,
|
||||
} = require("devtools/server/actors/utils/dbg-source");
|
||||
const { WebConsoleUtils } = require("devtools/server/actors/webconsole/utils");
|
||||
} = require("resource://devtools/server/actors/utils/dbg-source.js");
|
||||
const {
|
||||
WebConsoleUtils,
|
||||
} = require("resource://devtools/server/actors/webconsole/utils.js");
|
||||
|
||||
const {
|
||||
TYPES: { ERROR_MESSAGE },
|
||||
} = require("devtools/server/actors/resources/index");
|
||||
const Targets = require("devtools/server/actors/targets/index");
|
||||
} = require("resource://devtools/server/actors/resources/index.js");
|
||||
const Targets = require("resource://devtools/server/actors/targets/index.js");
|
||||
|
||||
const { MESSAGE_CATEGORY } = require("devtools/shared/constants");
|
||||
const { MESSAGE_CATEGORY } = require("resource://devtools/shared/constants.js");
|
||||
|
||||
const PLATFORM_SPECIFIC_CATEGORIES = [
|
||||
"XPConnect JavaScript",
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
const {
|
||||
TYPES: { EXTENSIONS_BGSCRIPT_STATUS },
|
||||
} = require("devtools/server/actors/resources/index");
|
||||
} = require("resource://devtools/server/actors/resources/index.js");
|
||||
|
||||
class ExtensionsBackgroundScriptStatusWatcher {
|
||||
/**
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const Targets = require("devtools/server/actors/targets/index");
|
||||
const Targets = require("resource://devtools/server/actors/targets/index.js");
|
||||
|
||||
const TYPES = {
|
||||
CONSOLE_MESSAGE: "console-message",
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
const {
|
||||
TYPES: { NETWORK_EVENT_STACKTRACE },
|
||||
} = require("devtools/server/actors/resources/index");
|
||||
} = require("resource://devtools/server/actors/resources/index.js");
|
||||
|
||||
loader.lazyRequireGetter(
|
||||
this,
|
||||
|
|
|
@ -4,14 +4,14 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const { Pool } = require("devtools/shared/protocol/Pool");
|
||||
const { Pool } = require("resource://devtools/shared/protocol/Pool.js");
|
||||
const { isWindowGlobalPartOfContext } = ChromeUtils.importESModule(
|
||||
"resource://devtools/server/actors/watcher/browsing-context-helpers.sys.mjs"
|
||||
);
|
||||
const { WatcherRegistry } = ChromeUtils.importESModule(
|
||||
"resource://devtools/server/actors/watcher/WatcherRegistry.sys.mjs"
|
||||
);
|
||||
const Targets = require("devtools/server/actors/targets/index");
|
||||
const Targets = require("resource://devtools/server/actors/targets/index.js");
|
||||
|
||||
loader.lazyRequireGetter(
|
||||
this,
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
const {
|
||||
TYPES: { DOCUMENT_EVENT },
|
||||
} = require("devtools/server/actors/resources/index");
|
||||
} = require("resource://devtools/server/actors/resources/index.js");
|
||||
const isEveryFrameTargetEnabled = Services.prefs.getBoolPref(
|
||||
"devtools.every-frame-target.enabled",
|
||||
false
|
||||
|
@ -16,7 +16,7 @@ const { getAllBrowsingContextsForContext } = ChromeUtils.importESModule(
|
|||
);
|
||||
const {
|
||||
WILL_NAVIGATE_TIME_SHIFT,
|
||||
} = require("devtools/server/actors/webconsole/listeners/document-events");
|
||||
} = require("resource://devtools/server/actors/webconsole/listeners/document-events.js");
|
||||
|
||||
class ParentProcessDocumentEventWatcher {
|
||||
/**
|
||||
|
|
|
@ -4,13 +4,15 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const nsIConsoleListenerWatcher = require("devtools/server/actors/resources/utils/nsi-console-listener-watcher");
|
||||
const nsIConsoleListenerWatcher = require("resource://devtools/server/actors/resources/utils/nsi-console-listener-watcher.js");
|
||||
|
||||
const {
|
||||
TYPES: { PLATFORM_MESSAGE },
|
||||
} = require("devtools/server/actors/resources/index");
|
||||
} = require("resource://devtools/server/actors/resources/index.js");
|
||||
|
||||
const { createStringGrip } = require("devtools/server/actors/object/utils");
|
||||
const {
|
||||
createStringGrip,
|
||||
} = require("resource://devtools/server/actors/object/utils.js");
|
||||
|
||||
class PlatformMessageWatcher extends nsIConsoleListenerWatcher {
|
||||
shouldHandleTarget(targetActor) {
|
||||
|
|
|
@ -6,13 +6,13 @@
|
|||
|
||||
const {
|
||||
TYPES: { REFLOW },
|
||||
} = require("devtools/server/actors/resources/index");
|
||||
const Targets = require("devtools/server/actors/targets/index");
|
||||
} = require("resource://devtools/server/actors/resources/index.js");
|
||||
const Targets = require("resource://devtools/server/actors/targets/index.js");
|
||||
|
||||
const {
|
||||
getLayoutChangesObserver,
|
||||
releaseLayoutChangesObserver,
|
||||
} = require("devtools/server/actors/reflow");
|
||||
} = require("resource://devtools/server/actors/reflow.js");
|
||||
|
||||
class ReflowWatcher {
|
||||
/**
|
||||
|
|
|
@ -4,11 +4,13 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const { LongStringActor } = require("devtools/server/actors/string");
|
||||
const {
|
||||
LongStringActor,
|
||||
} = require("resource://devtools/server/actors/string.js");
|
||||
|
||||
const {
|
||||
TYPES: { SERVER_SENT_EVENT },
|
||||
} = require("devtools/server/actors/resources/index");
|
||||
} = require("resource://devtools/server/actors/resources/index.js");
|
||||
|
||||
const eventSourceEventService = Cc[
|
||||
"@mozilla.org/eventsourceevent/service;1"
|
||||
|
|
|
@ -6,10 +6,12 @@
|
|||
|
||||
const {
|
||||
TYPES: { SOURCE },
|
||||
} = require("devtools/server/actors/resources/index");
|
||||
const Targets = require("devtools/server/actors/targets/index");
|
||||
} = require("resource://devtools/server/actors/resources/index.js");
|
||||
const Targets = require("resource://devtools/server/actors/targets/index.js");
|
||||
|
||||
const { STATES: THREAD_STATES } = require("devtools/server/actors/thread");
|
||||
const {
|
||||
STATES: THREAD_STATES,
|
||||
} = require("resource://devtools/server/actors/thread.js");
|
||||
|
||||
/**
|
||||
* Start watching for all JS sources related to a given Target Actor.
|
||||
|
|
|
@ -6,9 +6,9 @@
|
|||
|
||||
const {
|
||||
TYPES: { CACHE_STORAGE },
|
||||
} = require("devtools/server/actors/resources/index");
|
||||
} = require("resource://devtools/server/actors/resources/index.js");
|
||||
|
||||
const ContentProcessStorage = require("devtools/server/actors/resources/utils/content-process-storage");
|
||||
const ContentProcessStorage = require("resource://devtools/server/actors/resources/utils/content-process-storage.js");
|
||||
|
||||
class CacheWatcher extends ContentProcessStorage {
|
||||
constructor() {
|
||||
|
|
|
@ -6,9 +6,9 @@
|
|||
|
||||
const {
|
||||
TYPES: { COOKIE },
|
||||
} = require("devtools/server/actors/resources/index");
|
||||
} = require("resource://devtools/server/actors/resources/index.js");
|
||||
|
||||
const ParentProcessStorage = require("devtools/server/actors/resources/utils/parent-process-storage");
|
||||
const ParentProcessStorage = require("resource://devtools/server/actors/resources/utils/parent-process-storage.js");
|
||||
|
||||
class CookiesWatcher extends ParentProcessStorage {
|
||||
constructor() {
|
||||
|
|
|
@ -6,9 +6,9 @@
|
|||
|
||||
const {
|
||||
TYPES: { INDEXED_DB },
|
||||
} = require("devtools/server/actors/resources/index");
|
||||
} = require("resource://devtools/server/actors/resources/index.js");
|
||||
|
||||
const ParentProcessStorage = require("devtools/server/actors/resources/utils/parent-process-storage");
|
||||
const ParentProcessStorage = require("resource://devtools/server/actors/resources/utils/parent-process-storage.js");
|
||||
|
||||
class IndexedDBWatcher extends ParentProcessStorage {
|
||||
constructor() {
|
||||
|
|
|
@ -6,9 +6,9 @@
|
|||
|
||||
const {
|
||||
TYPES: { LOCAL_STORAGE },
|
||||
} = require("devtools/server/actors/resources/index");
|
||||
} = require("resource://devtools/server/actors/resources/index.js");
|
||||
|
||||
const ContentProcessStorage = require("devtools/server/actors/resources/utils/content-process-storage");
|
||||
const ContentProcessStorage = require("resource://devtools/server/actors/resources/utils/content-process-storage.js");
|
||||
|
||||
class LocalStorageWatcher extends ContentProcessStorage {
|
||||
constructor() {
|
||||
|
|
|
@ -6,9 +6,9 @@
|
|||
|
||||
const {
|
||||
TYPES: { SESSION_STORAGE },
|
||||
} = require("devtools/server/actors/resources/index");
|
||||
} = require("resource://devtools/server/actors/resources/index.js");
|
||||
|
||||
const ContentProcessStorage = require("devtools/server/actors/resources/utils/content-process-storage");
|
||||
const ContentProcessStorage = require("resource://devtools/server/actors/resources/utils/content-process-storage.js");
|
||||
|
||||
class SessionStorageWatcher extends ContentProcessStorage {
|
||||
constructor() {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
const {
|
||||
TYPES: { STYLESHEET },
|
||||
} = require("devtools/server/actors/resources/index");
|
||||
} = require("resource://devtools/server/actors/resources/index.js");
|
||||
|
||||
loader.lazyRequireGetter(
|
||||
this,
|
||||
|
|
|
@ -6,12 +6,12 @@
|
|||
|
||||
const {
|
||||
TYPES: { THREAD_STATE },
|
||||
} = require("devtools/server/actors/resources/index");
|
||||
} = require("resource://devtools/server/actors/resources/index.js");
|
||||
|
||||
const {
|
||||
PAUSE_REASONS,
|
||||
STATES: THREAD_STATES,
|
||||
} = require("devtools/server/actors/thread");
|
||||
} = require("resource://devtools/server/actors/thread.js");
|
||||
|
||||
// Possible values of breakpoint's resource's `state` attribute
|
||||
const STATES = {
|
||||
|
|
|
@ -4,8 +4,10 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const { storageTypePool } = require("devtools/server/actors/storage");
|
||||
const EventEmitter = require("devtools/shared/event-emitter");
|
||||
const {
|
||||
storageTypePool,
|
||||
} = require("resource://devtools/server/actors/storage.js");
|
||||
const EventEmitter = require("resource://devtools/shared/event-emitter.js");
|
||||
|
||||
const lazy = {};
|
||||
ChromeUtils.defineESModuleGetters(lazy, {
|
||||
|
|
|
@ -4,11 +4,13 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const { createStringGrip } = require("devtools/server/actors/object/utils");
|
||||
const {
|
||||
createStringGrip,
|
||||
} = require("resource://devtools/server/actors/object/utils.js");
|
||||
|
||||
const {
|
||||
getActorIdForInternalSourceId,
|
||||
} = require("devtools/server/actors/utils/dbg-source");
|
||||
} = require("resource://devtools/server/actors/utils/dbg-source.js");
|
||||
|
||||
class nsIConsoleListenerWatcher {
|
||||
/**
|
||||
|
|
|
@ -4,8 +4,10 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const { storageTypePool } = require("devtools/server/actors/storage");
|
||||
const EventEmitter = require("devtools/shared/event-emitter");
|
||||
const {
|
||||
storageTypePool,
|
||||
} = require("resource://devtools/server/actors/storage.js");
|
||||
const EventEmitter = require("resource://devtools/shared/event-emitter.js");
|
||||
const {
|
||||
getAllBrowsingContextsForContext,
|
||||
isWindowGlobalPartOfContext,
|
||||
|
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче