зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1265869 - Add task.js and use in devtools. r=jryans
MozReview-Commit-ID: G5UuAh2RiZZ --HG-- rename : toolkit/modules/Task.jsm => devtools/shared/task.js extra : transplant_source : %B8h%8A%8C%BD%91%8A%81%1D%F4%F5%2Ap%CFv%BC%963u0
This commit is contained in:
Родитель
2113b87b76
Коммит
0d398a243a
|
@ -120,6 +120,7 @@ devtools/server/**
|
|||
!devtools/server/actors/styles.js
|
||||
devtools/shared/*.js
|
||||
!devtools/shared/css-lexer.js
|
||||
!devtools/shared/task.js
|
||||
devtools/shared/*.jsm
|
||||
devtools/shared/apps/**
|
||||
devtools/shared/client/**
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const { Task } = require("resource://gre/modules/Task.jsm");
|
||||
const { Task } = require("devtools/shared/task");
|
||||
|
||||
loader.lazyRequireGetter(this, "gDevTools",
|
||||
"devtools/client/framework/devtools", true);
|
||||
|
|
|
@ -14,8 +14,8 @@
|
|||
|
||||
var { classes: Cc, interfaces: Ci, utils: Cu, results: Cr } = Components;
|
||||
|
||||
Cu.import("resource://gre/modules/Task.jsm");
|
||||
var { loader, require } = Cu.import("resource://devtools/shared/Loader.jsm");
|
||||
var { Task } = require("devtools/shared/task");
|
||||
|
||||
loader.lazyRequireGetter(this, "promise");
|
||||
loader.lazyRequireGetter(this, "EventEmitter", "devtools/shared/event-emitter");
|
||||
|
|
|
@ -6,8 +6,7 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const {Cu} = require("chrome");
|
||||
const {Task} = Cu.import("resource://gre/modules/Task.jsm", {});
|
||||
const {Task} = require("devtools/shared/task");
|
||||
const EventEmitter = require("devtools/shared/event-emitter");
|
||||
const {createNode, TimeScale} = require("devtools/client/animationinspector/utils");
|
||||
const {Keyframes} = require("devtools/client/animationinspector/components/keyframes");
|
||||
|
|
|
@ -6,8 +6,7 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const {Cu} = require("chrome");
|
||||
const {Task} = Cu.import("resource://gre/modules/Task.jsm", {});
|
||||
const {Task} = require("devtools/shared/task");
|
||||
const EventEmitter = require("devtools/shared/event-emitter");
|
||||
const {DomNodePreview} = require("devtools/client/inspector/shared/dom-node-preview");
|
||||
|
||||
|
|
|
@ -21,8 +21,7 @@ const { Heritage, WidgetMethods, setNamedTimeout, clearNamedTimeout,
|
|||
|
||||
const CANVAS_ACTOR_RECORDING_ATTEMPT = DevToolsUtils.testing ? 500 : 5000;
|
||||
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "Task",
|
||||
"resource://gre/modules/Task.jsm");
|
||||
const { Task } = require("devtools/shared/task");
|
||||
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "PluralForm",
|
||||
"resource://gre/modules/PluralForm.jsm");
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
var { classes: Cc, interfaces: Ci, utils: Cu, results: Cr } = Components;
|
||||
|
||||
var { generateUUID } = Cc["@mozilla.org/uuid-generator;1"].getService(Ci.nsIUUIDGenerator);
|
||||
var { Task } = Cu.import("resource://gre/modules/Task.jsm", {});
|
||||
var { require } = Cu.import("resource://devtools/shared/Loader.jsm", {});
|
||||
|
||||
var Services = require("Services");
|
||||
|
|
|
@ -10,6 +10,7 @@ const { PROMISE } = require("devtools/client/shared/redux/middleware/promise");
|
|||
const {
|
||||
getSource, getBreakpoint, getBreakpoints, makeLocationId
|
||||
} = require("../queries");
|
||||
const { Task } = require("devtools/shared/task");
|
||||
|
||||
// Because breakpoints are just simple data structures, we still need
|
||||
// a way to lookup the actual client instance to talk to the server.
|
||||
|
|
|
@ -7,6 +7,7 @@ const constants = require("../constants");
|
|||
const { asPaused } = require("../utils");
|
||||
const { reportException } = require("devtools/shared/DevToolsUtils");
|
||||
const { setNamedTimeout } = require("devtools/client/shared/widgets/view-helpers");
|
||||
const { Task } = require("devtools/shared/task");
|
||||
|
||||
const FETCH_EVENT_LISTENERS_DELAY = 200; // ms
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@ const Services = require("Services");
|
|||
const { dumpn } = require("devtools/shared/DevToolsUtils");
|
||||
const { PROMISE, HISTOGRAM_ID } = require("devtools/client/shared/redux/middleware/promise");
|
||||
const { getSource, getSourceText } = require("../queries");
|
||||
const { Task } = require("devtools/shared/task");
|
||||
|
||||
const NEW_SOURCE_IGNORED_URLS = ["debugger eval code", "XStringBundle"];
|
||||
const FETCH_SOURCE_RESPONSE_DELAY = 200; // ms
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
"use strict";
|
||||
|
||||
const { reportException } = require("devtools/shared/DevToolsUtils");
|
||||
const { Task } = require("devtools/shared/task");
|
||||
|
||||
function asPaused(client, func) {
|
||||
if (client.state != "paused") {
|
||||
|
|
|
@ -23,6 +23,7 @@ const {
|
|||
WidgetMethods,
|
||||
setNamedTimeout
|
||||
} = require("devtools/client/shared/widgets/view-helpers");
|
||||
const { Task } = require("devtools/shared/task");
|
||||
|
||||
const NEW_SOURCE_DISPLAY_DELAY = 200; // ms
|
||||
const FUNCTION_SEARCH_POPUP_POSITION = "topcenter bottomleft";
|
||||
|
|
|
@ -149,12 +149,10 @@ var {Tooltip} = require("devtools/client/shared/widgets/Tooltip");
|
|||
var FastListWidget = require("devtools/client/shared/widgets/FastListWidget");
|
||||
var {LocalizationHelper} = require("devtools/client/shared/l10n");
|
||||
var {PrefsHelper} = require("devtools/client/shared/prefs");
|
||||
var {Task} = require("devtools/shared/task");
|
||||
|
||||
XPCOMUtils.defineConstant(this, "EVENTS", EVENTS);
|
||||
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "Task",
|
||||
"resource://gre/modules/Task.jsm");
|
||||
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "Parser",
|
||||
"resource://devtools/shared/Parser.jsm");
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ const { ObjectClient } = require("devtools/shared/client/main");
|
|||
|
||||
const promise = require("promise");
|
||||
const EventEmitter = require("devtools/shared/event-emitter");
|
||||
const { Task } = require("resource://gre/modules/Task.jsm");
|
||||
const { Task } = require("devtools/shared/task");
|
||||
|
||||
/**
|
||||
* This object represents DOM panel. It's responsibility is to
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
|
||||
var Cu = Components.utils;
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
Cu.import("resource://gre/modules/Task.jsm");
|
||||
var {require} = Cu.import("resource://devtools/shared/Loader.jsm", {});
|
||||
var Services = require("Services");
|
||||
var {gDevTools} = require("devtools/client/framework/devtools");
|
||||
|
@ -16,6 +15,7 @@ var {TargetFactory} = require("devtools/client/framework/target");
|
|||
var {Toolbox} = require("devtools/client/framework/toolbox");
|
||||
var promise = require("promise");
|
||||
var {DebuggerClient} = require("devtools/shared/client/main");
|
||||
var {Task} = require("devtools/shared/task");
|
||||
|
||||
var gClient;
|
||||
var gConnectionTimeout;
|
||||
|
|
|
@ -9,7 +9,7 @@ const {Cu} = require("chrome");
|
|||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
|
||||
var Services = require("Services");
|
||||
var {Task} = require("resource://gre/modules/Task.jsm");
|
||||
var {Task} = require("devtools/shared/task");
|
||||
var EventEmitter = require("devtools/shared/event-emitter");
|
||||
var Telemetry = require("devtools/client/shared/telemetry");
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
"use strict";
|
||||
|
||||
const { Task } = require("resource://gre/modules/Task.jsm");
|
||||
const { Task } = require("devtools/shared/task");
|
||||
const { assert } = require("devtools/shared/DevToolsUtils");
|
||||
|
||||
/**
|
||||
|
|
|
@ -9,7 +9,7 @@ const { Cu, Ci } = require("chrome");
|
|||
const { TargetFactory } = require("devtools/client/framework/target");
|
||||
const { DebuggerServer } = require("devtools/server/main");
|
||||
const { DebuggerClient } = require("devtools/shared/client/main");
|
||||
const { Task } = require("resource://gre/modules/Task.jsm");
|
||||
const { Task } = require("devtools/shared/task");
|
||||
|
||||
/**
|
||||
* Construct a Target for a given URL object having various query parameters:
|
||||
|
|
|
@ -27,7 +27,7 @@ const {TargetFactory} = require("devtools/client/framework/target");
|
|||
const DevToolsUtils = require("devtools/shared/DevToolsUtils");
|
||||
let promise = require("promise");
|
||||
const Services = require("Services");
|
||||
const {Task} = require("resource://gre/modules/Task.jsm");
|
||||
const {Task} = require("devtools/shared/task");
|
||||
const {KeyShortcuts} = require("devtools/client/shared/key-shortcuts");
|
||||
|
||||
const TEST_DIR = gTestPath.substr(0, gTestPath.lastIndexOf("/"));
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"use strict";
|
||||
|
||||
const promise = require("promise");
|
||||
const {Task} = require("resource://gre/modules/Task.jsm");
|
||||
const {Task} = require("devtools/shared/task");
|
||||
const DevToolsUtils = require("devtools/shared/DevToolsUtils");
|
||||
|
||||
/**
|
||||
|
|
|
@ -19,7 +19,7 @@ if (url.search.length > 1) {
|
|||
const { TargetFactory } = require("devtools/client/framework/target");
|
||||
const { DebuggerServer } = require("devtools/server/main");
|
||||
const { DebuggerClient } = require("devtools/shared/client/main");
|
||||
const { Task } = require("resource://gre/modules/Task.jsm");
|
||||
const { Task } = require("devtools/shared/task");
|
||||
|
||||
// `host` is the frame element loading the toolbox.
|
||||
let host = window.QueryInterface(Ci.nsIInterfaceRequestor)
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
const Services = require("Services");
|
||||
const promise = require("promise");
|
||||
const {XPCOMUtils} = require("resource://gre/modules/XPCOMUtils.jsm");
|
||||
const {Task} = require("resource://gre/modules/Task.jsm");
|
||||
const {Task} = require("devtools/shared/task");
|
||||
const {gDevTools} = require("devtools/client/framework/devtools");
|
||||
|
||||
exports.OptionsPanel = OptionsPanel;
|
||||
|
|
|
@ -18,7 +18,7 @@ var { Toolbox } = require("devtools/client/framework/toolbox");
|
|||
var Services = require("Services");
|
||||
var { DebuggerClient } = require("devtools/shared/client/main");
|
||||
var { PrefsHelper } = require("devtools/client/shared/prefs");
|
||||
var { Task } = Cu.import("resource://gre/modules/Task.jsm", {});
|
||||
var { Task } = require("devtools/shared/task");
|
||||
|
||||
/**
|
||||
* Shortcuts for accessing various debugger preferences.
|
||||
|
|
|
@ -19,7 +19,7 @@ const SCREENSIZE_HISTOGRAM = "DEVTOOLS_SCREEN_RESOLUTION_ENUMERATED_PER_USER";
|
|||
var {Cc, Ci, Cu} = require("chrome");
|
||||
var promise = require("promise");
|
||||
var Services = require("Services");
|
||||
var {Task} = require("resource://gre/modules/Task.jsm");
|
||||
var {Task} = require("devtools/shared/task");
|
||||
var {gDevTools} = require("devtools/client/framework/devtools");
|
||||
var EventEmitter = require("devtools/shared/event-emitter");
|
||||
var Telemetry = require("devtools/client/shared/telemetry");
|
||||
|
|
|
@ -6,16 +6,13 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const {Cu} = require("chrome");
|
||||
const {gDevTools} = require("devtools/client/framework/devtools");
|
||||
const Services = require("Services");
|
||||
|
||||
const DEFAULT_PREVIEW_TEXT = "Abc";
|
||||
const PREVIEW_UPDATE_DELAY = 150;
|
||||
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "Task",
|
||||
"resource://gre/modules/Task.jsm");
|
||||
const {Task} = require("devtools/shared/task");
|
||||
|
||||
function FontInspector(inspector, window) {
|
||||
this.inspector = inspector;
|
||||
|
|
|
@ -15,6 +15,7 @@ var clipboard = require("sdk/clipboard");
|
|||
var {HostType} = require("devtools/client/framework/toolbox").Toolbox;
|
||||
const {executeSoon} = require("devtools/shared/DevToolsUtils");
|
||||
var {KeyShortcuts} = require("devtools/client/shared/key-shortcuts");
|
||||
var {Task} = require("devtools/shared/task");
|
||||
|
||||
loader.lazyRequireGetter(this, "CSS", "CSS");
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
const {Cu, Ci} = require("chrome");
|
||||
|
||||
const promise = require("promise");
|
||||
const {Task} = require("devtools/shared/task");
|
||||
|
||||
loader.lazyGetter(this, "system", () => require("devtools/shared/system"));
|
||||
loader.lazyGetter(this, "EventEmitter", () => require("devtools/shared/event-emitter"));
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"use strict";
|
||||
|
||||
const {Cc, Ci} = require("chrome");
|
||||
const {Task} = require("resource://gre/modules/Task.jsm");
|
||||
const {Task} = require("devtools/shared/task");
|
||||
const {InplaceEditor, editableItem} =
|
||||
require("devtools/client/shared/inplace-editor");
|
||||
const {ReflowFront} = require("devtools/server/actors/layout");
|
||||
|
|
|
@ -41,7 +41,7 @@ const {parseAttribute} =
|
|||
require("devtools/client/shared/node-attribute-parser");
|
||||
const ELLIPSIS = Services.prefs.getComplexValue("intl.ellipsis",
|
||||
Ci.nsIPrefLocalizedString).data;
|
||||
const {Task} = require("resource://gre/modules/Task.jsm");
|
||||
const {Task} = require("devtools/shared/task");
|
||||
const {scrollIntoViewIfNeeded} = require("devtools/shared/layout/utils");
|
||||
const {PrefObserver} = require("devtools/client/styleeditor/utils");
|
||||
const {KeyShortcuts} = require("devtools/client/shared/key-shortcuts");
|
||||
|
|
|
@ -11,7 +11,7 @@ const {Cc, Ci} = require("chrome");
|
|||
const promise = require("promise");
|
||||
const Services = require("Services");
|
||||
const {XPCOMUtils} = require("resource://gre/modules/XPCOMUtils.jsm");
|
||||
const {Task} = require("resource://gre/modules/Task.jsm");
|
||||
const {Task} = require("devtools/shared/task");
|
||||
const {Tools} = require("devtools/client/definitions");
|
||||
const {CssLogic} = require("devtools/shared/inspector/css-logic");
|
||||
const {ELEMENT_STYLE} = require("devtools/server/actors/styles");
|
||||
|
|
|
@ -3,8 +3,7 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
"use strict";
|
||||
|
||||
const {Cu} = require("chrome");
|
||||
const {Task} = Cu.import("resource://gre/modules/Task.jsm", {});
|
||||
const {Task} = require("devtools/shared/task");
|
||||
const EventEmitter = require("devtools/shared/event-emitter");
|
||||
const {createNode} = require("devtools/client/animationinspector/utils");
|
||||
const { LocalizationHelper } = require("devtools/client/shared/l10n");
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
const {PREF_ORIG_SOURCES} = require("devtools/client/styleeditor/utils");
|
||||
const Services = require("Services");
|
||||
const {Task} = require("resource://gre/modules/Task.jsm");
|
||||
const {Task} = require("devtools/shared/task");
|
||||
|
||||
loader.lazyRequireGetter(this, "overlays",
|
||||
"devtools/client/inspector/shared/style-inspector-overlays");
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
// - in-content highlighters that appear when hovering over property values
|
||||
// - etc.
|
||||
|
||||
const {Cu} = require("chrome");
|
||||
const {
|
||||
Tooltip,
|
||||
SwatchColorPickerTooltip,
|
||||
|
@ -22,7 +21,7 @@ const {
|
|||
} = require("devtools/client/shared/widgets/Tooltip");
|
||||
const EventEmitter = require("devtools/shared/event-emitter");
|
||||
const promise = require("promise");
|
||||
Cu.import("resource://gre/modules/Task.jsm");
|
||||
const {Task} = require("devtools/shared/task");
|
||||
const Services = require("Services");
|
||||
|
||||
const PREF_IMAGE_TOOLTIP_SIZE = "devtools.inspector.imagePreviewTooltipSize";
|
||||
|
|
|
@ -11,7 +11,7 @@ const { require } = BrowserLoaderModule.BrowserLoader({
|
|||
baseURI: "resource://devtools/client/memory/",
|
||||
window: this
|
||||
});
|
||||
const { Task } = require("resource://gre/modules/Task.jsm");
|
||||
const { Task } = require("devtools/shared/task");
|
||||
const { createFactory, createElement } = require("devtools/client/shared/vendor/react");
|
||||
const ReactDOM = require("devtools/client/shared/vendor/react-dom");
|
||||
const { Provider } = require("devtools/client/shared/vendor/react-redux");
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
"use strict";
|
||||
|
||||
const { Cc, Ci, Cu, Cr } = require("chrome");
|
||||
const { Task } = require("resource://gre/modules/Task.jsm");
|
||||
const { Task } = require("devtools/shared/task");
|
||||
const EventEmitter = require("devtools/shared/event-emitter");
|
||||
const { MemoryFront } = require("devtools/server/actors/memory");
|
||||
const HeapAnalysesClient = require("devtools/shared/heapsnapshot/HeapAnalysesClient");
|
||||
|
|
|
@ -12,7 +12,7 @@ var { require } = BrowserLoader({
|
|||
window: this
|
||||
});
|
||||
var Services = require("Services");
|
||||
var { Task } = require("resource://gre/modules/Task.jsm");
|
||||
var { Task } = require("devtools/shared/task");
|
||||
|
||||
var EXPECTED_DTU_ASSERT_FAILURE_COUNT = 0;
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ var { OS } = require("resource://gre/modules/osfile.jsm");
|
|||
var { FileUtils } = require("resource://gre/modules/FileUtils.jsm");
|
||||
var { TargetFactory } = require("devtools/client/framework/target");
|
||||
var promise = require("promise");
|
||||
var { Task } = Cu.import("resource://gre/modules/Task.jsm", {});
|
||||
var { Task } = require("devtools/shared/task");
|
||||
var { expectState } = require("devtools/server/actors/common");
|
||||
var HeapSnapshotFileUtils = require("devtools/shared/heapsnapshot/HeapSnapshotFileUtils");
|
||||
var HeapAnalysesClient = require("devtools/shared/heapsnapshot/HeapAnalysesClient");
|
||||
|
|
|
@ -3,12 +3,11 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
"use strict";
|
||||
|
||||
const { Cu, Ci } = require("chrome");
|
||||
const { Ci } = require("chrome");
|
||||
const { Class } = require("sdk/core/heritage");
|
||||
const { resolve } = require("promise");
|
||||
const Services = require("Services");
|
||||
|
||||
Cu.import("resource://gre/modules/Task.jsm");
|
||||
const { Task } = require("devtools/shared/task");
|
||||
|
||||
loader.lazyRequireGetter(this, "HarCollector", "devtools/client/netmonitor/har/har-collector", true);
|
||||
loader.lazyRequireGetter(this, "HarExporter", "devtools/client/netmonitor/har/har-exporter", true);
|
||||
|
|
|
@ -119,6 +119,7 @@ const {XPCOMUtils} = require("resource://gre/modules/XPCOMUtils.jsm");
|
|||
const EventEmitter = require("devtools/shared/event-emitter");
|
||||
const Editor = require("devtools/client/sourceeditor/editor");
|
||||
const {TimelineFront} = require("devtools/server/actors/timeline");
|
||||
const { Task } = require("devtools/shared/task");
|
||||
|
||||
XPCOMUtils.defineConstant(this, "EVENTS", EVENTS);
|
||||
XPCOMUtils.defineConstant(this, "ACTIVITY_TYPE", ACTIVITY_TYPE);
|
||||
|
@ -133,9 +134,6 @@ XPCOMUtils.defineLazyModuleGetter(this, "Curl",
|
|||
XPCOMUtils.defineLazyModuleGetter(this, "CurlUtils",
|
||||
"resource://devtools/client/shared/Curl.jsm");
|
||||
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "Task",
|
||||
"resource://gre/modules/Task.jsm");
|
||||
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "PluralForm",
|
||||
"resource://gre/modules/PluralForm.jsm");
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
const promise = require("promise");
|
||||
const EventEmitter = require("devtools/shared/event-emitter");
|
||||
const { Task } = require("resource://gre/modules/Task.jsm");
|
||||
const { Task } = require("devtools/shared/task");
|
||||
|
||||
function NetMonitorPanel(iframeWindow, toolbox) {
|
||||
this.panelWin = iframeWindow;
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
|
||||
var { classes: Cc, interfaces: Ci, utils: Cu, results: Cr } = Components;
|
||||
|
||||
var { Task } = Cu.import("resource://gre/modules/Task.jsm", {});
|
||||
var { require } = Cu.import("resource://devtools/shared/Loader.jsm", {});
|
||||
var { gDevTools } = require("devtools/client/framework/devtools");
|
||||
var { Task } = require("devtools/shared/task");
|
||||
var { CurlUtils } = Cu.import("resource://devtools/client/shared/Curl.jsm", {});
|
||||
var Services = require("Services");
|
||||
var promise = require("promise");
|
||||
|
|
|
@ -10,7 +10,7 @@ var { Promise: promise } = Cu.import("resource://gre/modules/Promise.jsm", {});
|
|||
var { require } = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
||||
var { BrowserLoader } = Cu.import("resource://devtools/client/shared/browser-loader.js", {});
|
||||
var DevToolsUtils = require("devtools/shared/DevToolsUtils");
|
||||
var { Task } = require("resource://gre/modules/Task.jsm");
|
||||
var { Task } = require("devtools/shared/task");
|
||||
var { TargetFactory } = require("devtools/client/framework/target");
|
||||
var { Toolbox } = require("devtools/client/framework/toolbox");
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
"use strict";
|
||||
|
||||
const { Task } = require("resource://gre/modules/Task.jsm");
|
||||
const { Task } = require("devtools/shared/task");
|
||||
|
||||
const promise = require("promise");
|
||||
const EventEmitter = require("devtools/shared/event-emitter");
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"use strict";
|
||||
|
||||
const { Cu } = require("chrome");
|
||||
const { Task } = require("resource://gre/modules/Task.jsm");
|
||||
const { Task } = require("devtools/shared/task");
|
||||
|
||||
const Services = require("Services");
|
||||
const promise = require("promise");
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"use strict";
|
||||
|
||||
const { Cc, Ci, Cu, Cr } = require("chrome");
|
||||
const { Task } = require("resource://gre/modules/Task.jsm");
|
||||
const { Task } = require("devtools/shared/task");
|
||||
|
||||
const PerformanceIO = require("devtools/client/performance/modules/io");
|
||||
const RecordingUtils = require("devtools/shared/performance/recording-utils");
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
*/
|
||||
|
||||
const { Cc, Ci, Cu, Cr } = require("chrome");
|
||||
const { Task } = require("resource://gre/modules/Task.jsm");
|
||||
const { Task } = require("devtools/shared/task");
|
||||
const { Heritage } = require("devtools/client/shared/widgets/view-helpers");
|
||||
const LineGraphWidget = require("devtools/client/shared/widgets/LineGraphWidget");
|
||||
const BarGraphWidget = require("devtools/client/shared/widgets/BarGraphWidget");
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"use strict";
|
||||
|
||||
const { Cc, Ci, Cu, Cr } = require("chrome");
|
||||
const { Task } = require("resource://gre/modules/Task.jsm");
|
||||
const { Task } = require("devtools/shared/task");
|
||||
|
||||
loader.lazyRequireGetter(this, "promise");
|
||||
loader.lazyRequireGetter(this, "EventEmitter",
|
||||
|
|
|
@ -10,7 +10,7 @@ var { loader, require } = BrowserLoaderModule.BrowserLoader({
|
|||
baseURI: "resource://devtools/client/performance/",
|
||||
window: this
|
||||
});
|
||||
var { Task } = require("resource://gre/modules/Task.jsm");
|
||||
var { Task } = require("devtools/shared/task");
|
||||
var { Heritage, ViewHelpers, WidgetMethods, setNamedTimeout, clearNamedTimeout } = require("devtools/client/shared/widgets/view-helpers");
|
||||
var { gDevTools } = require("devtools/client/framework/devtools");
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
*/
|
||||
|
||||
const { Cc, Ci } = require("chrome");
|
||||
const { Task } = require("resource://gre/modules/Task.jsm");
|
||||
const { Task } = require("devtools/shared/task");
|
||||
|
||||
const FRAME_SCRIPT_UTILS_URL = "chrome://devtools/content/shared/frame-script-utils.js";
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
/* globals dump */
|
||||
|
||||
const { CC } = require("chrome");
|
||||
const { Task } = require("resource://gre/modules/Task.jsm");
|
||||
const { Task } = require("devtools/shared/task");
|
||||
const DevToolsUtils = require("devtools/shared/DevToolsUtils");
|
||||
const { once, observeOnce } = require("devtools/client/performance/test/helpers/event-utils");
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ const { scope, on, forget } = require("devtools/client/projecteditor/lib/helpers
|
|||
const prefs = require("sdk/preferences/service");
|
||||
const { LocalStore } = require("devtools/client/projecteditor/lib/stores/local");
|
||||
const { OS } = Cu.import("resource://gre/modules/osfile.jsm", {});
|
||||
const { Task } = Cu.import("resource://gre/modules/Task.jsm", {});
|
||||
const { Task } = require("devtools/shared/task");
|
||||
const promise = require("promise");
|
||||
const { TextEncoder, TextDecoder } = require("sdk/io/buffer");
|
||||
const url = require("sdk/url");
|
||||
|
|
|
@ -19,7 +19,7 @@ const promise = require("promise");
|
|||
const { ViewHelpers } = require("devtools/client/shared/widgets/view-helpers");
|
||||
const { DOMHelpers } = Cu.import("resource://devtools/client/shared/DOMHelpers.jsm");
|
||||
const Services = require("Services");
|
||||
const { Task } = Cu.import("resource://gre/modules/Task.jsm", {});
|
||||
const { Task } = require("devtools/shared/task");
|
||||
const ITCHPAD_URL = "chrome://devtools/content/projecteditor/chrome/content/projecteditor.xul";
|
||||
const { confirm } = require("devtools/client/projecteditor/lib/helpers/prompts");
|
||||
const { getLocalizedString } = require("devtools/client/projecteditor/lib/helpers/l10n");
|
||||
|
|
|
@ -9,7 +9,7 @@ const { Class } = require("sdk/core/heritage");
|
|||
const { OS } = Cu.import("resource://gre/modules/osfile.jsm", {});
|
||||
const { emit } = require("sdk/event/core");
|
||||
const { Store } = require("devtools/client/projecteditor/lib/stores/base");
|
||||
const { Task } = Cu.import("resource://gre/modules/Task.jsm", {});
|
||||
const { Task } = require("devtools/shared/task");
|
||||
const promise = require("promise");
|
||||
const Services = require("Services");
|
||||
const { on, forget } = require("devtools/client/projecteditor/lib/helpers/event");
|
||||
|
|
|
@ -16,7 +16,7 @@ const promise = require("promise");
|
|||
const { OS } = Cu.import("resource://gre/modules/osfile.jsm", {});
|
||||
const { FileUtils } = Cu.import("resource://gre/modules/FileUtils.jsm", {});
|
||||
const mimeService = Cc["@mozilla.org/mime;1"].getService(Ci.nsIMIMEService);
|
||||
const { Task } = Cu.import("resource://gre/modules/Task.jsm", {});
|
||||
const { Task } = require("devtools/shared/task");
|
||||
|
||||
const gDecoder = new TextDecoder();
|
||||
const gEncoder = new TextEncoder();
|
||||
|
|
|
@ -12,7 +12,7 @@ var { utils: Cu } = Components;
|
|||
const { loader, require } =
|
||||
Cu.import("resource://devtools/shared/Loader.jsm", {});
|
||||
|
||||
const { Task } = require("resource://gre/modules/Task.jsm");
|
||||
const { Task } = require("devtools/shared/task");
|
||||
|
||||
loader.lazyRequireGetter(this, "promise");
|
||||
loader.lazyRequireGetter(this, "EventEmitter",
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
/* global PromisesController, promise */
|
||||
/* import-globals-from promise-controller.js */
|
||||
|
||||
"use strict";
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ const {
|
|||
|
||||
const { getFormatStr } = require("../utils/l10n");
|
||||
const { getToplevelWindow } = require("sdk/window/utils");
|
||||
const { Task: { spawn } } = require("resource://gre/modules/Task.jsm");
|
||||
const { Task: { spawn } } = require("devtools/shared/task");
|
||||
const e10s = require("../utils/e10s");
|
||||
|
||||
const BASE_URL = "resource://devtools/client/responsive.html";
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
"use strict";
|
||||
|
||||
const promise = require("promise");
|
||||
const { Task } = require("resource://gre/modules/Task.jsm");
|
||||
const { Task } = require("devtools/shared/task");
|
||||
|
||||
/**
|
||||
* Swap page content from an existing tab into a new browser within a container
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const { Task } = require("resource://gre/modules/Task.jsm");
|
||||
const { Task } = require("devtools/shared/task");
|
||||
const DevToolsUtils = require("devtools/shared/DevToolsUtils");
|
||||
const { getToplevelWindow } = require("sdk/window/utils");
|
||||
const { DOM: dom, createClass, addons, PropTypes } =
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
"use strict";
|
||||
|
||||
const Services = require("Services");
|
||||
const { Task } = require("resource://gre/modules/Task.jsm");
|
||||
const { Task } = require("devtools/shared/task");
|
||||
const { GetDevices } = require("devtools/client/shared/devices");
|
||||
const { addDevice, addDeviceType } = require("./actions/devices");
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ const { require } = BrowserLoader({
|
|||
baseURI: "resource://devtools/client/responsive.html/",
|
||||
window: this
|
||||
});
|
||||
const { Task } = require("resource://gre/modules/Task.jsm");
|
||||
const { Task } = require("devtools/shared/task");
|
||||
const Telemetry = require("devtools/client/shared/telemetry");
|
||||
const { loadSheet } = require("sdk/stylesheet/utils");
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
"use strict";
|
||||
|
||||
const promise = require("promise");
|
||||
const { Task } = require("resource://gre/modules/Task.jsm");
|
||||
const { Task } = require("devtools/shared/task");
|
||||
const EventEmitter = require("devtools/shared/event-emitter");
|
||||
const { TouchEventSimulator } = require("devtools/shared/touch/simulator");
|
||||
const { getOwnerWindow } = require("sdk/tabs/utils");
|
||||
|
|
|
@ -9,7 +9,7 @@ const { utils: Cu } = Components;
|
|||
const { require } = Cu.import("resource://devtools/shared/Loader.jsm", {});
|
||||
|
||||
const promise = require("promise");
|
||||
const { Task } = require("resource://gre/modules/Task.jsm");
|
||||
const { Task } = require("devtools/shared/task");
|
||||
const Store = require("devtools/client/responsive.html/store");
|
||||
|
||||
const DevToolsUtils = require("devtools/shared/DevToolsUtils");
|
||||
|
|
|
@ -11,7 +11,7 @@ var {loader, require} = Cu.import("resource://devtools/shared/Loader.jsm", {});
|
|||
var Telemetry = require("devtools/client/shared/telemetry");
|
||||
var {showDoorhanger} = require("devtools/client/shared/doorhanger");
|
||||
var {TouchEventSimulator} = require("devtools/shared/touch/simulator");
|
||||
var {Task} = require("resource://gre/modules/Task.jsm");
|
||||
var {Task} = require("devtools/shared/task");
|
||||
var promise = require("promise");
|
||||
var DevToolsUtils = require("devtools/shared/DevToolsUtils");
|
||||
var Services = require("Services");
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
// Test the completions using numbers.
|
||||
const source = "0x1.";
|
||||
const completions = ["toExponential", "toFixed", "toString"];
|
||||
Cu.import("resource://gre/modules/Task.jsm");
|
||||
const { Task } = require("devtools/shared/task");
|
||||
|
||||
function test() {
|
||||
const options = { tabContent: "test scratchpad autocomplete" };
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// Test that closing the toolbox after having opened a scratchpad leaves the
|
||||
// latter in a functioning state.
|
||||
|
||||
var {Task} = Cu.import("resource://gre/modules/Task.jsm", {});
|
||||
var {Task} = require("devtools/shared/task");
|
||||
var {TargetFactory} = require("devtools/client/framework/target");
|
||||
|
||||
function test() {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// Test if the view menu items "Larger Font" and "Smaller Font" are disabled
|
||||
// when the font size reaches the maximum/minimum values.
|
||||
|
||||
var {Task} = Cu.import("resource://gre/modules/Task.jsm", {});
|
||||
var {Task} = require("devtools/shared/task");
|
||||
|
||||
function test() {
|
||||
const options = {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// Test that inspecting primitive values uses the object inspector, not an
|
||||
// inline comment.
|
||||
|
||||
var {Task} = Cu.import("resource://gre/modules/Task.jsm", {});
|
||||
var {Task} = require("devtools/shared/task");
|
||||
|
||||
function test() {
|
||||
const options = {
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
var { classes: Cc, interfaces: Ci, utils: Cu, results: Cr } = Components;
|
||||
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
Cu.import("resource://gre/modules/Task.jsm");
|
||||
Cu.import("resource://devtools/client/shared/widgets/SideMenuWidget.jsm");
|
||||
|
||||
const {require} = Cu.import("resource://devtools/shared/Loader.jsm", {});
|
||||
|
@ -18,6 +17,7 @@ const Editor = require("devtools/client/sourceeditor/editor");
|
|||
const {LocalizationHelper} = require("devtools/client/shared/l10n");
|
||||
const {Heritage, WidgetMethods, setNamedTimeout} =
|
||||
require("devtools/client/shared/widgets/view-helpers");
|
||||
const {Task} = require("devtools/shared/task");
|
||||
|
||||
// The panel's window global is an EventEmitter firing the following events:
|
||||
const EVENTS = {
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
|
||||
var { classes: Cc, interfaces: Ci, utils: Cu, results: Cr } = Components;
|
||||
|
||||
var { Task } = Cu.import("resource://gre/modules/Task.jsm", {});
|
||||
var { require } = Cu.import("resource://devtools/shared/Loader.jsm", {});
|
||||
var { Task } = require("devtools/shared/task");
|
||||
|
||||
var Services = require("Services");
|
||||
var promise = require("promise");
|
||||
|
|
|
@ -14,7 +14,7 @@ var Services = require("Services");
|
|||
var { DebuggerServer } = require("devtools/server/main");
|
||||
var { DebuggerClient } = require("devtools/shared/client/main");
|
||||
var DevToolsUtils = require("devtools/shared/DevToolsUtils");
|
||||
var { Task } = require("resource://gre/modules/Task.jsm");
|
||||
var { Task } = require("devtools/shared/task");
|
||||
var { TargetFactory } = require("devtools/client/framework/target");
|
||||
var { Toolbox } = require("devtools/client/framework/toolbox");
|
||||
|
||||
|
|
|
@ -14,11 +14,11 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const {Cc, Ci, Cu} = require("chrome");
|
||||
const {Cc, Ci} = require("chrome");
|
||||
loader.lazyRequireGetter(this, "CSS", "CSS");
|
||||
const promise = require("promise");
|
||||
const {getCSSLexer} = require("devtools/shared/css-lexer");
|
||||
Cu.import("resource://gre/modules/Task.jsm", this);
|
||||
const {Task} = require("devtools/shared/task");
|
||||
loader.lazyGetter(this, "DOMUtils", () => {
|
||||
return Cc["@mozilla.org/inspector/dom-utils;1"].getService(Ci.inIDOMUtils);
|
||||
});
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
const { Ci, Cc } = require("chrome");
|
||||
const Services = require("Services");
|
||||
const { DOMHelpers } = require("resource://devtools/client/shared/DOMHelpers.jsm");
|
||||
const { Task } = require("resource://gre/modules/Task.jsm");
|
||||
const { Task } = require("devtools/shared/task");
|
||||
const { Promise } = require("resource://gre/modules/Promise.jsm");
|
||||
const { getMostRecentBrowserWindow } = require("sdk/window/utils");
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
var {classes: Cc, interfaces: Ci, utils: Cu} = Components;
|
||||
const {require, loader} = Cu.import("resource://devtools/shared/Loader.jsm", {});
|
||||
const promise = require("promise");
|
||||
loader.lazyImporter(this, "Task", "resource://gre/modules/Task.jsm", "Task");
|
||||
const { Task } = require("devtools/shared/task");
|
||||
|
||||
loader.lazyGetter(this, "nsIProfilerModule", () => {
|
||||
return Cc["@mozilla.org/tools/profiler;1"].getService(Ci.nsIProfiler);
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
"use strict";
|
||||
|
||||
const { Task } = require("resource://gre/modules/Task.jsm");
|
||||
const { Task } = require("devtools/shared/task");
|
||||
const { executeSoon, isGenerator, reportException } = require("devtools/shared/DevToolsUtils");
|
||||
const ERROR_TYPE = exports.ERROR_TYPE = "@@redux/middleware/task#error";
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
var { Cc, Ci, Cu, Cr } = require("chrome");
|
||||
const {getRect, getElementFromPoint, getAdjustedQuads} = require("devtools/shared/layout/utils");
|
||||
const promise = require("promise");
|
||||
const {Task} = Cu.import("resource://gre/modules/Task.jsm", {});
|
||||
const {Task} = require("devtools/shared/task");
|
||||
var DOMUtils = Cc["@mozilla.org/inspector/dom-utils;1"].getService(Ci.inIDOMUtils);
|
||||
var loader = Cc["@mozilla.org/moz/jssubscript-loader;1"]
|
||||
.getService(Ci.mozIJSSubScriptLoader);
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
loader.lazyImporter(this, "Task", "resource://gre/modules/Task.jsm");
|
||||
var { Task } = require("devtools/shared/task");
|
||||
|
||||
var Services = require("Services");
|
||||
var {gDevTools} = require("devtools/client/framework/devtools");
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
"use strict";
|
||||
|
||||
const { Task } = require("resource://gre/modules/Task.jsm");
|
||||
const { Task } = require("devtools/shared/task");
|
||||
const { ViewHelpers, setNamedTimeout, clearNamedTimeout } = require("devtools/client/shared/widgets/view-helpers");
|
||||
const { LocalizationHelper } = require("devtools/client/shared/l10n");
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
const { Cc, Ci, Cu, Cr } = require("chrome");
|
||||
|
||||
const { Task } = Cu.import("resource://gre/modules/Task.jsm", {});
|
||||
const { Task } = require("devtools/shared/task");
|
||||
const { Heritage, setNamedTimeout, clearNamedTimeout } = require("devtools/client/shared/widgets/view-helpers");
|
||||
const { getCurrentZoom } = require("devtools/shared/layout/utils");
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
const { Cc, Ci, Cu, Cr } = require("chrome");
|
||||
|
||||
const { Task } = Cu.import("resource://gre/modules/Task.jsm", {});
|
||||
const { Task } = require("devtools/shared/task");
|
||||
const { ViewHelpers, Heritage } = require("devtools/client/shared/widgets/view-helpers");
|
||||
const { AbstractCanvasGraph, CanvasGraphUtils } = require("devtools/client/shared/widgets/Graphs");
|
||||
const { LocalizationHelper } = require("devtools/client/shared/l10n");
|
||||
|
|
|
@ -18,6 +18,7 @@ const Heritage = require("sdk/core/heritage");
|
|||
const {Eyedropper} = require("devtools/client/eyedropper/eyedropper");
|
||||
const Editor = require("devtools/client/sourceeditor/editor");
|
||||
const Services = require("Services");
|
||||
const {Task} = require("devtools/shared/task");
|
||||
|
||||
loader.lazyRequireGetter(this, "beautify", "devtools/shared/jsbeautify/beautify");
|
||||
loader.lazyRequireGetter(this, "setNamedTimeout", "devtools/client/shared/widgets/view-helpers", true);
|
||||
|
@ -30,8 +31,6 @@ XPCOMUtils.defineLazyModuleGetter(this, "VariablesView",
|
|||
"resource://devtools/client/shared/widgets/VariablesView.jsm");
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "VariablesViewController",
|
||||
"resource://devtools/client/shared/widgets/VariablesViewController.jsm");
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "Task",
|
||||
"resource://gre/modules/Task.jsm");
|
||||
|
||||
const XHTML_NS = "http://www.w3.org/1999/xhtml";
|
||||
const SPECTRUM_FRAME = "chrome://devtools/content/shared/widgets/spectrum-frame.xhtml";
|
||||
|
|
|
@ -19,7 +19,6 @@ const ITEM_FLASH_DURATION = 300; // ms
|
|||
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
Cu.import("resource://devtools/shared/event-emitter.js");
|
||||
Cu.import("resource://gre/modules/Task.jsm");
|
||||
const { require } = Cu.import("resource://devtools/shared/Loader.jsm", {});
|
||||
const DevToolsUtils = require("devtools/shared/DevToolsUtils");
|
||||
const Services = require("Services");
|
||||
|
@ -27,6 +26,7 @@ const { getSourceNames } = require("devtools/client/shared/source-utils");
|
|||
const promise = require("promise");
|
||||
const { Heritage, ViewHelpers, setNamedTimeout } =
|
||||
require("devtools/client/shared/widgets/view-helpers");
|
||||
const { Task } = require("devtools/shared/task");
|
||||
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "PluralForm",
|
||||
"resource://gre/modules/PluralForm.jsm");
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const {Task} = require("resource://gre/modules/Task.jsm");
|
||||
const {Task} = require("devtools/shared/task");
|
||||
|
||||
const DEFAULT_SHOW_DELAY = 50;
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const {Task} = require("resource://gre/modules/Task.jsm");
|
||||
const {Task} = require("devtools/shared/task");
|
||||
const EventEmitter = require("devtools/shared/event-emitter");
|
||||
const {LocalizationHelper} = require("devtools/client/shared/l10n");
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ const {require, loader} = Cu.import("resource://devtools/shared/Loader.jsm", {})
|
|||
const Services = require("Services");
|
||||
const {NetUtil} = Cu.import("resource://gre/modules/NetUtil.jsm", {});
|
||||
const {OS} = Cu.import("resource://gre/modules/osfile.jsm", {});
|
||||
const {Task} = Cu.import("resource://gre/modules/Task.jsm", {});
|
||||
const {Task} = require("devtools/shared/task");
|
||||
const EventEmitter = require("devtools/shared/event-emitter");
|
||||
const {gDevTools} = require("devtools/client/framework/devtools");
|
||||
/* import-globals-from StyleEditorUtil.jsm */
|
||||
|
|
|
@ -18,11 +18,11 @@ const {CssLogic} = require("devtools/shared/inspector/css-logic");
|
|||
const {console} = require("resource://gre/modules/Console.jsm");
|
||||
const Services = require("Services");
|
||||
const EventEmitter = require("devtools/shared/event-emitter");
|
||||
const {Task} = require("devtools/shared/task");
|
||||
|
||||
Cu.import("resource://gre/modules/FileUtils.jsm");
|
||||
Cu.import("resource://gre/modules/NetUtil.jsm");
|
||||
const { TextDecoder, OS } = Cu.import("resource://gre/modules/osfile.jsm", {});
|
||||
Cu.import("resource://gre/modules/Task.jsm");
|
||||
/* import-globals-from StyleEditorUtil.jsm */
|
||||
Cu.import("resource://devtools/client/styleeditor/StyleEditorUtil.jsm");
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ const {Cu} = require("chrome");
|
|||
|
||||
var Services = require("Services");
|
||||
var promise = require("promise");
|
||||
var {Task} = require("resource://gre/modules/Task.jsm");
|
||||
var {Task} = require("devtools/shared/task");
|
||||
var {XPCOMUtils} = require("resource://gre/modules/XPCOMUtils.jsm");
|
||||
var EventEmitter = require("devtools/shared/event-emitter");
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ const { loader, require } = Cu.import("resource://devtools/shared/Loader.jsm", {
|
|||
|
||||
var { EventTarget } = require("sdk/event/target");
|
||||
|
||||
const { Task } = Cu.import("resource://gre/modules/Task.jsm", {});
|
||||
const { Task } = require("devtools/shared/task");
|
||||
const { Class } = require("sdk/core/heritage");
|
||||
const EventEmitter = require("devtools/shared/event-emitter");
|
||||
const DevToolsUtils = require("devtools/shared/DevToolsUtils");
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
|
||||
var { classes: Cc, interfaces: Ci, utils: Cu, results: Cr } = Components;
|
||||
|
||||
var { Task } = Cu.import("resource://gre/modules/Task.jsm", {});
|
||||
var { require } = Cu.import("resource://devtools/shared/Loader.jsm", {});
|
||||
var { Task } = require("devtools/shared/task");
|
||||
var Services = require("Services");
|
||||
var { gDevTools } = require("devtools/client/framework/devtools");
|
||||
var { TargetFactory } = require("devtools/client/framework/target");
|
||||
|
|
|
@ -12,7 +12,6 @@ const Services = require("Services");
|
|||
|
||||
loader.lazyImporter(this, "VariablesView", "resource://devtools/client/shared/widgets/VariablesView.jsm");
|
||||
loader.lazyImporter(this, "escapeHTML", "resource://devtools/client/shared/widgets/VariablesView.jsm");
|
||||
loader.lazyImporter(this, "Task", "resource://gre/modules/Task.jsm");
|
||||
loader.lazyImporter(this, "PluralForm", "resource://gre/modules/PluralForm.jsm");
|
||||
|
||||
loader.lazyRequireGetter(this, "promise");
|
||||
|
@ -28,6 +27,7 @@ const STRINGS_URI = "chrome://devtools/locale/webconsole.properties";
|
|||
|
||||
const WebConsoleUtils = require("devtools/shared/webconsole/utils").Utils;
|
||||
const { getSourceNames } = require("devtools/client/shared/source-utils");
|
||||
const {Task} = require("devtools/shared/task");
|
||||
const l10n = new WebConsoleUtils.L10n(STRINGS_URI);
|
||||
|
||||
const MAX_STRING_GRIP_LENGTH = 36;
|
||||
|
|
|
@ -12,7 +12,7 @@ var WebConsoleUtils = require("devtools/shared/webconsole/utils").Utils;
|
|||
var Heritage = require("sdk/core/heritage");
|
||||
var {TargetFactory} = require("devtools/client/framework/target");
|
||||
var {Tools} = require("devtools/client/definitions");
|
||||
const { Task } = require("resource://gre/modules/Task.jsm");
|
||||
const { Task } = require("devtools/shared/task");
|
||||
var promise = require("promise");
|
||||
var Services = require("Services");
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ Cu.import("resource://testing-common/Assert.jsm");
|
|||
var { require } = Cu.import("resource://devtools/shared/Loader.jsm", {});
|
||||
var { BrowserLoader } = Cu.import("resource://devtools/client/shared/browser-loader.js", {});
|
||||
var DevToolsUtils = require("devtools/shared/DevToolsUtils");
|
||||
var { Task } = require("resource://gre/modules/Task.jsm");
|
||||
var { Task } = require("devtools/shared/task");
|
||||
var { DebuggerServer } = require("devtools/server/main");
|
||||
var { DebuggerClient } = require("devtools/shared/client/main");
|
||||
|
||||
|
|
|
@ -6,8 +6,6 @@ var Cc = Components.classes;
|
|||
var Cu = Components.utils;
|
||||
var Ci = Components.interfaces;
|
||||
|
||||
Cu.import("resource://gre/modules/Task.jsm");
|
||||
|
||||
const {require} = Cu.import("resource://devtools/shared/Loader.jsm", {});
|
||||
const {gDevTools} = require("devtools/client/framework/devtools");
|
||||
const {gDevToolsBrowser} = require("devtools/client/framework/devtools-browser");
|
||||
|
@ -26,6 +24,7 @@ const Telemetry = require("devtools/client/shared/telemetry");
|
|||
const {RuntimeScanners} = require("devtools/client/webide/modules/runtimes");
|
||||
const {showDoorhanger} = require("devtools/client/shared/doorhanger");
|
||||
const {Simulators} = require("devtools/client/webide/modules/simulators");
|
||||
const {Task} = require("devtools/shared/task");
|
||||
|
||||
const Strings = Services.strings.createBundle("chrome://devtools/locale/webide.properties");
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ const {AppActorFront} = require("devtools/shared/apps/app-actor-front");
|
|||
const {getDeviceFront} = require("devtools/server/actors/device");
|
||||
const {getPreferenceFront} = require("devtools/server/actors/preference");
|
||||
const {getSettingsFront} = require("devtools/server/actors/settings");
|
||||
const {Task} = Cu.import("resource://gre/modules/Task.jsm", {});
|
||||
const {Task} = require("devtools/shared/task");
|
||||
const {RuntimeScanners, RuntimeTypes} = require("devtools/client/webide/modules/runtimes");
|
||||
const {NetUtil} = Cu.import("resource://gre/modules/NetUtil.jsm", {});
|
||||
const Telemetry = require("devtools/client/shared/telemetry");
|
||||
|
|
|
@ -8,7 +8,7 @@ const promise = require("promise");
|
|||
|
||||
const {FileUtils} = Cu.import("resource://gre/modules/FileUtils.jsm", {});
|
||||
const Services = require("Services");
|
||||
const {Task} = Cu.import("resource://gre/modules/Task.jsm", {});
|
||||
const {Task} = require("devtools/shared/task");
|
||||
var XMLHttpRequest = CC("@mozilla.org/xmlextras/xmlhttprequest;1");
|
||||
var strings = Services.strings.createBundle("chrome://devtools/locale/app-manager.properties");
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
const {Cu, Cc, Ci} = require("chrome");
|
||||
|
||||
const promise = require("promise");
|
||||
const { Task } = Cu.import("resource://gre/modules/Task.jsm", {});
|
||||
const { Task } = require("devtools/shared/task");
|
||||
const { TextDecoder, OS } = Cu.import("resource://gre/modules/osfile.jsm", {});
|
||||
const Subprocess = require("sdk/system/child_process/subprocess");
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ const {AppProjects} = require("devtools/client/webide/modules/app-projects");
|
|||
const {AppManager} = require("devtools/client/webide/modules/app-manager");
|
||||
const promise = require("promise");
|
||||
const EventEmitter = require("devtools/shared/event-emitter");
|
||||
const {Task} = Cu.import("resource://gre/modules/Task.jsm", {});
|
||||
const {Task} = require("devtools/shared/task");
|
||||
const utils = require("devtools/client/webide/modules/utils");
|
||||
const Telemetry = require("devtools/client/shared/telemetry");
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ const {AppManager} = require("devtools/client/webide/modules/app-manager");
|
|||
const EventEmitter = require("devtools/shared/event-emitter");
|
||||
const {RuntimeScanners, WiFiScanner} = require("devtools/client/webide/modules/runtimes");
|
||||
const {Devices} = Cu.import("resource://devtools/shared/apps/Devices.jsm");
|
||||
const {Task} = Cu.import("resource://gre/modules/Task.jsm", {});
|
||||
const {Task} = require("devtools/shared/task");
|
||||
const utils = require("devtools/client/webide/modules/utils");
|
||||
|
||||
const Strings = Services.strings.createBundle("chrome://devtools/locale/webide.properties");
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
const { Cu } = require("chrome");
|
||||
const { AddonManager } = Cu.import("resource://gre/modules/AddonManager.jsm");
|
||||
const { Task } = Cu.import("resource://gre/modules/Task.jsm", {});
|
||||
const { Task } = require("devtools/shared/task");
|
||||
loader.lazyRequireGetter(this, "ConnectionManager", "devtools/shared/client/connection-manager", true);
|
||||
loader.lazyRequireGetter(this, "AddonSimulatorProcess", "devtools/client/webide/modules/simulator-process", true);
|
||||
loader.lazyRequireGetter(this, "OldAddonSimulatorProcess", "devtools/client/webide/modules/simulator-process", true);
|
||||
|
|
|
@ -8,7 +8,7 @@ const { TargetFactory } = require("devtools/client/framework/target");
|
|||
const EventEmitter = require("devtools/shared/event-emitter");
|
||||
const { Connection } = require("devtools/shared/client/connection-manager");
|
||||
const promise = require("promise");
|
||||
const { Task } = Cu.import("resource://gre/modules/Task.jsm", {});
|
||||
const { Task } = require("devtools/shared/task");
|
||||
|
||||
const _knownTabStores = new WeakMap();
|
||||
|
||||
|
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче