Bug 1203159 - Rewrite DevTools resource URLs. r=ochameau

This commit is contained in:
J. Ryan Stinnett 2015-10-13 18:18:43 -05:00
Родитель 978cb5107a
Коммит 986f2a5cde
333 изменённых файлов: 512 добавлений и 512 удалений

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

@ -11,7 +11,7 @@ module.metadata = {
const { Cu } = require("chrome");
const { Class } = require("../sdk/core/heritage");
const { MessagePort, MessageChannel } = require("../sdk/messaging");
const { require: devtoolsRequire } = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
const { require: devtoolsRequire } = Cu.import("resource://devtools/shared/Loader.jsm", {});
const { DebuggerServer } = devtoolsRequire("devtools/server/main");
const outputs = new WeakMap();

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

@ -15,7 +15,7 @@ const { contract, validate } = require("../sdk/util/contract");
const { each, pairs, values } = require("../sdk/util/sequence");
const { onEnable, onDisable } = require("../dev/theme/hooks");
const { gDevTools } = Cu.import("resource:///modules/devtools/client/framework/gDevTools.jsm", {});
const { gDevTools } = Cu.import("resource://devtools/client/framework/gDevTools.jsm", {});
// This is temporary workaround to allow loading of the developer tools client - volcan
// into a toolbox panel, this hack won't be necessary as soon as devtools patch will be

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

@ -5,8 +5,8 @@
"use strict";
const { Cu } = require("chrome");
const { gDevTools } = Cu.import("resource:///modules/devtools/client/framework/gDevTools.jsm", {});
const { devtools } = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
const { gDevTools } = Cu.import("resource://devtools/client/framework/gDevTools.jsm", {});
const { devtools } = Cu.import("resource://devtools/shared/Loader.jsm", {});
const { getActiveTab } = require("../sdk/tabs/utils");
const { getMostRecentBrowserWindow } = require("../sdk/window/utils");

2
addon-sdk/source/lib/sdk/addon/bootstrap.js поставляемый
Просмотреть файл

@ -117,7 +117,7 @@ Bootstrap.prototype = {
name: metadata.name,
paths: Object.assign({
"": "resource://gre/modules/commonjs/",
"devtools/": "resource://gre/modules/devtools/",
"devtools/": "resource://devtools/",
"./": baseURI
}, readPaths(id)),
manifest: metadata,

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

@ -24,7 +24,7 @@ const Startup = Cu.import("resource://gre/modules/sdk/system/Startup.js", {}).ex
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
XPCOMUtils.defineLazyGetter(this, "BrowserToolboxProcess", function () {
return Cu.import("resource:///modules/devtools/client/framework/ToolboxProcess.jsm", {}).
return Cu.import("resource://devtools/client/framework/ToolboxProcess.jsm", {}).
BrowserToolboxProcess;
});

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

@ -15,7 +15,7 @@ const self = require('sdk/self');
const { getTabId, getTabForContentWindow } = require('../tabs/utils');
const { getInnerId } = require('../window/utils');
const { devtools } = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
const { devtools } = Cu.import("resource://devtools/shared/Loader.jsm", {});
const { require: devtoolsRequire } = devtools;
const { addContentGlobal, removeContentGlobal } = devtoolsRequire("devtools/server/content-globals");

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

@ -12,7 +12,7 @@ const make = (exports, rootURI, components) => {
isNative: true,
paths: {
"": rootURI,
"devtools/": "resource://gre/modules/devtools/"
"devtools/": "resource://devtools/"
}
});

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

@ -12,7 +12,7 @@ const { getMostRecentBrowserWindow } = require('sdk/window/utils');
const { data } = require('sdk/self');
const { set } = require('sdk/preferences/service');
const { require: devtoolsRequire } = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
const { require: devtoolsRequire } = Cu.import("resource://devtools/shared/Loader.jsm", {});
const { DebuggerServer } = devtoolsRequire("devtools/server/main");
const { DebuggerClient } = devtoolsRequire("devtools/shared/client/main");

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

@ -12,7 +12,7 @@ const { getMostRecentBrowserWindow } = require('sdk/window/utils');
const { data } = require('sdk/self');
const { set } = require('sdk/preferences/service');
const { require: devtoolsRequire } = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
const { require: devtoolsRequire } = Cu.import("resource://devtools/shared/Loader.jsm", {});
const { DebuggerServer } = devtoolsRequire("devtools/server/main");
const { DebuggerClient } = devtoolsRequire("devtools/shared/client/main");

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

@ -10,7 +10,7 @@ const { testPageMod, handleReadyState, openNewTab,
const { cleanUI, after } = require("sdk/test/utils");
const { open, getFrames, getMostRecentBrowserWindow, getInnerId } = require("sdk/window/utils");
const { devtools } = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
const { devtools } = Cu.import("resource://devtools/shared/Loader.jsm", {});
const { require: devtoolsRequire } = devtools;
const contentGlobals = devtoolsRequire("devtools/server/content-globals");

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

@ -8,7 +8,7 @@ var isMulet = "ResponsiveUI" in browserWindow;
// Enable touch event shim on desktop that translates mouse events
// into touch ones
function enableTouch() {
let require = Cu.import('resource://gre/modules/devtools/shared/Loader.jsm', {})
let require = Cu.import('resource://devtools/shared/Loader.jsm', {})
.devtools.require;
let { TouchEventSimulator } = require('devtools/shared/touch/simulator');
let touchEventSimulator = new TouchEventSimulator(shell.contentBrowser);
@ -108,7 +108,7 @@ function checkDebuggerPort() {
function initResponsiveDesign() {
Cu.import('resource:///modules/devtools/client/responsivedesign/responsivedesign.jsm');
Cu.import('resource://devtools/client/responsivedesign/responsivedesign.jsm');
ResponsiveUIManager.on('on', function(event, {tab:tab}) {
let responsive = ResponsiveUIManager.getResponsiveUIForTab(tab);
let document = tab.ownerDocument;
@ -154,8 +154,8 @@ function openDevtools() {
Services.prefs.setIntPref('devtools.toolbox.sidebar.width',
browserWindow.outerWidth - 550);
Services.prefs.setCharPref('devtools.toolbox.host', 'side');
let {gDevTools} = Cu.import('resource:///modules/devtools/client/framework/gDevTools.jsm', {});
let {devtools} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
let {gDevTools} = Cu.import('resource://devtools/client/framework/gDevTools.jsm', {});
let {devtools} = Cu.import("resource://devtools/shared/Loader.jsm", {});
let target = devtools.TargetFactory.forTab(browserWindow.gBrowser.selectedTab);
gDevTools.showToolbox(target);
}

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

@ -8,7 +8,7 @@
XPCOMUtils.defineLazyGetter(this, "devtools", function() {
const { devtools } =
Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
Cu.import("resource://devtools/shared/Loader.jsm", {});
return devtools;
});

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

@ -10,7 +10,7 @@ const DEVELOPER_HUD_LOG_PREFIX = 'DeveloperHUD';
const CUSTOM_HISTOGRAM_PREFIX = 'DEVTOOLS_HUD_CUSTOM_';
XPCOMUtils.defineLazyGetter(this, 'devtools', function() {
const {devtools} = Cu.import('resource://gre/modules/devtools/shared/Loader.jsm', {});
const {devtools} = Cu.import('resource://devtools/shared/Loader.jsm', {});
return devtools;
});

2
b2g/simulator/bootstrap.js поставляемый
Просмотреть файл

@ -31,7 +31,7 @@ function startup(data, reason) {
Cu.import('resource://gre/modules/commonjs/toolkit/loader.js').Loader;
let { Loader, Require, Main } = loaderModule;
const { ConsoleAPI } = Cu.import("resource://gre/modules/devtools/shared/Console.jsm");
const { ConsoleAPI } = Cu.import("resource://devtools/shared/Console.jsm");
let loader = Loader({
paths: {

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

@ -189,13 +189,13 @@ XPCOMUtils.defineLazyGetter(this, "PopupNotifications", function () {
XPCOMUtils.defineLazyGetter(this, "DeveloperToolbar", function() {
let tmp = {};
Cu.import("resource:///modules/devtools/client/shared/DeveloperToolbar.jsm", tmp);
Cu.import("resource://devtools/client/shared/DeveloperToolbar.jsm", tmp);
return new tmp.DeveloperToolbar(window, document.getElementById("developer-toolbar"));
});
XPCOMUtils.defineLazyGetter(this, "BrowserToolboxProcess", function() {
let tmp = {};
Cu.import("resource:///modules/devtools/client/framework/ToolboxProcess.jsm", tmp);
Cu.import("resource://devtools/client/framework/ToolboxProcess.jsm", tmp);
return tmp.BrowserToolboxProcess;
});
@ -7867,14 +7867,14 @@ var TabContextMenu = {
};
XPCOMUtils.defineLazyModuleGetter(this, "gDevTools",
"resource:///modules/devtools/client/framework/gDevTools.jsm");
"resource://devtools/client/framework/gDevTools.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "gDevToolsBrowser",
"resource:///modules/devtools/client/framework/gDevTools.jsm");
"resource://devtools/client/framework/gDevTools.jsm");
Object.defineProperty(this, "HUDService", {
get: function HUDService_getter() {
let devtools = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {}).devtools;
let devtools = Cu.import("resource://devtools/shared/Loader.jsm", {}).devtools;
return devtools.require("devtools/client/webconsole/hudservice");
},
configurable: true,
@ -7946,7 +7946,7 @@ var Scratchpad = {
XPCOMUtils.defineLazyGetter(Scratchpad, "ScratchpadManager", function() {
let tmp = {};
Cu.import("resource:///modules/devtools/client/scratchpad/scratchpad-manager.jsm", tmp);
Cu.import("resource://devtools/client/scratchpad/scratchpad-manager.jsm", tmp);
return tmp.ScratchpadManager;
});
@ -7958,7 +7958,7 @@ var ResponsiveUI = {
XPCOMUtils.defineLazyGetter(ResponsiveUI, "ResponsiveUIManager", function() {
let tmp = {};
Cu.import("resource:///modules/devtools/client/responsivedesign/responsivedesign.jsm", tmp);
Cu.import("resource://devtools/client/responsivedesign/responsivedesign.jsm", tmp);
return tmp.ResponsiveUIManager;
});
@ -7970,7 +7970,7 @@ function openEyedropper() {
Object.defineProperty(this, "Eyedropper", {
get: function() {
let devtools = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {}).devtools;
let devtools = Cu.import("resource://devtools/shared/Loader.jsm", {}).devtools;
return devtools.require("devtools/client/eyedropper/eyedropper").Eyedropper;
},
configurable: true,

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

@ -579,7 +579,7 @@ nsContextMenu.prototype = {
},
inspectNode: function CM_inspectNode() {
let {devtools} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
let {devtools} = Cu.import("resource://devtools/shared/Loader.jsm", {});
let gBrowser = this.browser.ownerDocument.defaultView.gBrowser;
let tt = devtools.TargetFactory.forTab(gBrowser.selectedTab);
return gDevTools.showToolbox(tt, "inspector").then(function(toolbox) {

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

@ -22,7 +22,7 @@ XPCOMUtils.defineLazyModuleGetter(this, "DownloadsCommon",
XPCOMUtils.defineLazyModuleGetter(this, "TelemetryStopwatch",
"resource://gre/modules/TelemetryStopwatch.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "console",
"resource://gre/modules/devtools/Console.jsm");
"resource://devtools/Console.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "Preferences",
"resource://gre/modules/Preferences.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "setTimeout",

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

@ -5,7 +5,7 @@
XPCOMUtils.defineLazyModuleGetter(this, "CustomizableUI",
"resource:///modules/CustomizableUI.jsm");
Cu.import("resource://gre/modules/devtools/shared/event-emitter.js");
Cu.import("resource://devtools/shared/event-emitter.js");
Cu.import("resource://gre/modules/ExtensionUtils.jsm");
var {

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

@ -17,7 +17,7 @@ XPCOMUtils.defineLazyModuleGetter(this, "CardDavImporter",
XPCOMUtils.defineLazyModuleGetter(this, "GoogleImporter",
"resource:///modules/loop/GoogleImporter.jsm");
XPCOMUtils.defineLazyGetter(this, "eventEmitter", function() {
const {EventEmitter} = Cu.import("resource://gre/modules/devtools/shared/event-emitter.js", {});
const {EventEmitter} = Cu.import("resource://devtools/shared/event-emitter.js", {});
return new EventEmitter();
});

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

@ -19,7 +19,7 @@ XPCOMUtils.defineLazyModuleGetter(this, "WebChannel",
"resource://gre/modules/WebChannel.jsm");
XPCOMUtils.defineLazyGetter(this, "eventEmitter", function() {
const {EventEmitter} = Cu.import("resource://gre/modules/devtools/shared/event-emitter.js", {});
const {EventEmitter} = Cu.import("resource://devtools/shared/event-emitter.js", {});
return new EventEmitter();
});
XPCOMUtils.defineLazyGetter(this, "gLoopBundle", function() {

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

@ -19,7 +19,7 @@ try {
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
XPCOMUtils.defineLazyGetter(this, "eventEmitter", function() {
const {EventEmitter} = Cu.import("resource://gre/modules/devtools/shared/event-emitter.js", {});
const {EventEmitter} = Cu.import("resource://devtools/shared/event-emitter.js", {});
return new EventEmitter();
});

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

@ -21,7 +21,7 @@ XPCOMUtils.defineLazyModuleGetter(this, "PlacesUtils",
"resource://gre/modules/PlacesUtils.jsm");
XPCOMUtils.defineLazyGetter(this, "EventEmitter", function() {
const {EventEmitter} = Cu.import("resource://gre/modules/devtools/event-emitter.js", {});
const {EventEmitter} = Cu.import("resource://devtools/event-emitter.js", {});
return EventEmitter;
});

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

@ -144,7 +144,7 @@ XPCOMUtils.defineLazyModuleGetter(this, "PrivacyFilter",
XPCOMUtils.defineLazyModuleGetter(this, "RunState",
"resource:///modules/sessionstore/RunState.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "ScratchpadManager",
"resource:///modules/devtools/client/scratchpad/scratchpad-manager.jsm");
"resource://devtools/client/scratchpad/scratchpad-manager.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "SessionSaver",
"resource:///modules/sessionstore/SessionSaver.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "SessionCookies",
@ -2520,7 +2520,7 @@ var SessionStoreInternal = {
global: this._globalState.getState()
};
if (Cu.isModuleLoaded("resource:///modules/devtools/client/scratchpad/scratchpad-manager.jsm")) {
if (Cu.isModuleLoaded("resource://devtools/client/scratchpad/scratchpad-manager.jsm")) {
// get open Scratchpad window states too
let scratchpads = ScratchpadManager.getSessionState();
if (scratchpads && scratchpads.length) {

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

@ -9,7 +9,7 @@
"use strict";
const { loader } = Components.utils.import(
"resource://gre/modules/devtools/shared/Loader.jsm", {});
"resource://devtools/shared/Loader.jsm", {});
loader.lazyRequireGetter(this, "AddonsComponent",
"devtools/client/aboutdebugging/components/addons", true);

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

@ -15,7 +15,7 @@
<link rel="stylesheet" href="chrome://global/skin/global.css" type="text/css"/>
<link rel="stylesheet" href="chrome://global/skin/in-content/common.css" type="text/css"/>
<link rel="stylesheet" href="chrome://devtools/content/aboutdebugging/aboutdebugging.css" type="text/css"/>
<script type="application/javascript" src="resource:///modules/devtools/client/shared/vendor/react.js"></script>
<script type="application/javascript" src="resource://devtools/client/shared/vendor/react.js"></script>
<script type="application/javascript;version=1.8" src="chrome://devtools/content/aboutdebugging/aboutdebugging.js"></script>
</head>
<body id="body">

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

@ -7,7 +7,7 @@
"use strict";
loader.lazyRequireGetter(this, "React",
"resource:///modules/devtools/client/shared/vendor/react.js");
"resource://devtools/client/shared/vendor/react.js");
loader.lazyRequireGetter(this, "TargetListComponent",
"devtools/client/aboutdebugging/components/target-list", true);
loader.lazyRequireGetter(this, "Services");

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

@ -7,7 +7,7 @@
"use strict";
loader.lazyRequireGetter(this, "React",
"resource:///modules/devtools/client/shared/vendor/react.js");
"resource://devtools/client/shared/vendor/react.js");
loader.lazyRequireGetter(this, "TargetComponent",
"devtools/client/aboutdebugging/components/target", true);
loader.lazyRequireGetter(this, "Services");

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

@ -8,7 +8,7 @@
"use strict";
loader.lazyRequireGetter(this, "React",
"resource:///modules/devtools/client/shared/vendor/react.js");
"resource://devtools/client/shared/vendor/react.js");
loader.lazyRequireGetter(this, "TargetFactory",
"devtools/client/framework/target", true);
loader.lazyRequireGetter(this, "Toolbox",
@ -16,9 +16,9 @@ loader.lazyRequireGetter(this, "Toolbox",
loader.lazyRequireGetter(this, "Services");
loader.lazyImporter(this, "BrowserToolboxProcess",
"resource:///modules/devtools/client/framework/ToolboxProcess.jsm");
"resource://devtools/client/framework/ToolboxProcess.jsm");
loader.lazyImporter(this, "gDevTools",
"resource:///modules/devtools/client/framework/gDevTools.jsm");
"resource://devtools/client/framework/gDevTools.jsm");
const Strings = Services.strings.createBundle(
"chrome://browser/locale/devtools/aboutdebugging.properties");

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

@ -9,7 +9,7 @@
loader.lazyRequireGetter(this, "Ci",
"chrome", true);
loader.lazyRequireGetter(this, "React",
"resource:///modules/devtools/client/shared/vendor/react.js");
"resource://devtools/client/shared/vendor/react.js");
loader.lazyRequireGetter(this, "TargetListComponent",
"devtools/client/aboutdebugging/components/target-list", true);
loader.lazyRequireGetter(this, "Services");

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

@ -10,9 +10,9 @@
var { classes: Cc, interfaces: Ci, utils: Cu, results: Cr } = Components;
Cu.import("resource://gre/modules/Task.jsm");
var { loader, require } = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm");
var { loader, require } = Cu.import("resource://devtools/shared/Loader.jsm");
Cu.import("resource://gre/modules/Console.jsm");
Cu.import("resource:///modules/devtools/client/shared/widgets/ViewHelpers.jsm");
Cu.import("resource://devtools/client/shared/widgets/ViewHelpers.jsm");
loader.lazyRequireGetter(this, "promise");
loader.lazyRequireGetter(this, "EventEmitter",

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

@ -20,7 +20,7 @@
// c.destroy();
const {Cu} = require("chrome");
Cu.import("resource:///modules/devtools/client/shared/widgets/ViewHelpers.jsm");
Cu.import("resource://devtools/client/shared/widgets/ViewHelpers.jsm");
const {Task} = Cu.import("resource://gre/modules/Task.jsm", {});
const {
createNode,

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

@ -5,12 +5,12 @@
"use strict";
var Cu = Components.utils;
const {gDevTools} = Cu.import("resource:///modules/devtools/client/framework/gDevTools.jsm", {});
const {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
const {gDevTools} = Cu.import("resource://devtools/client/framework/gDevTools.jsm", {});
const {require} = Cu.import("resource://devtools/shared/Loader.jsm", {});
const promise = require("promise");
const {TargetFactory} = require("devtools/client/framework/target");
const {console} = Cu.import("resource://gre/modules/Console.jsm", {});
const {ViewHelpers} = Cu.import("resource:///modules/devtools/client/shared/widgets/ViewHelpers.jsm", {});
const {ViewHelpers} = Cu.import("resource://devtools/client/shared/widgets/ViewHelpers.jsm", {});
const DevToolsUtils = require("devtools/shared/DevToolsUtils");
// All tests are asynchronous

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

@ -7,7 +7,7 @@
"use strict";
var Cu = Components.utils;
const {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
const {require} = Cu.import("resource://devtools/shared/Loader.jsm", {});
const {findOptimalTimeInterval} = require("devtools/client/animationinspector/utils");
// This test array contains objects that are used to test the

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

@ -6,7 +6,7 @@
"use strict";
var Cu = Components.utils;
const {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
const {require} = Cu.import("resource://devtools/shared/Loader.jsm", {});
const {formatStopwatchTime} = require("devtools/client/animationinspector/utils");

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

@ -6,7 +6,7 @@
"use strict";
var Cu = Components.utils;
const {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
const {require} = Cu.import("resource://devtools/shared/Loader.jsm", {});
const {TimeScale} = require("devtools/client/animationinspector/components");
const TEST_ANIMATIONS = [{

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

@ -8,7 +8,7 @@
const {Cu} = require("chrome");
const {Task} = Cu.import("resource://gre/modules/Task.jsm", {});
var {loader} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm");
var {loader} = Cu.import("resource://devtools/shared/Loader.jsm");
loader.lazyRequireGetter(this, "EventEmitter",
"devtools/shared/event-emitter");

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

@ -2,7 +2,7 @@ const {Cc,Ci,Cu,Cr} = require("chrome");
const ObservableObject = require("devtools/client/shared/observable-object");
const promise = require("devtools/shared/deprecated-sync-thenables");
const {EventEmitter} = Cu.import("resource://gre/modules/devtools/shared/event-emitter.js");
const {EventEmitter} = Cu.import("resource://devtools/shared/event-emitter.js");
const {generateUUID} = Cc['@mozilla.org/uuid-generator;1'].getService(Ci.nsIUUIDGenerator);
const {FileUtils} = Cu.import("resource://gre/modules/FileUtils.jsm");
const { indexedDB } = require("sdk/indexed-db");

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

@ -4,7 +4,7 @@
const {Cu} = require("chrome");
const ObservableObject = require("devtools/client/shared/observable-object");
const {Devices} = Cu.import("resource://gre/modules/devtools/shared/apps/Devices.jsm");
const {Devices} = Cu.import("resource://devtools/shared/apps/Devices.jsm");
var store = new ObservableObject({versions:[]});

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

@ -5,11 +5,11 @@
var Cu = Components.utils;
var Ci = Components.interfaces;
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource:///modules/devtools/client/framework/gDevTools.jsm");
Cu.import("resource://devtools/client/framework/gDevTools.jsm");
const {Simulator} = Cu.import("resource://gre/modules/devtools/shared/apps/Simulator.jsm")
const {Devices} = Cu.import("resource://gre/modules/devtools/shared/apps/Devices.jsm");
const {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
const {Simulator} = Cu.import("resource://devtools/shared/apps/Simulator.jsm")
const {Devices} = Cu.import("resource://devtools/shared/apps/Devices.jsm");
const {require} = Cu.import("resource://devtools/shared/Loader.jsm", {});
const {ConnectionManager, Connection} = require("devtools/shared/client/connection-manager");
const {getDeviceFront} = require("devtools/server/actors/device");

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

@ -4,9 +4,9 @@
var Cu = Components.utils;
Cu.import("resource://gre/modules/Services.jsm");
const {gDevTools} = Cu.import("resource:///modules/devtools/client/framework/gDevTools.jsm", {});
const {gDevTools} = Cu.import("resource://devtools/client/framework/gDevTools.jsm", {});
const {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
const {require} = Cu.import("resource://devtools/shared/Loader.jsm", {});
const {TargetFactory} = require("devtools/client/framework/target");
const {ConnectionManager, Connection}

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

@ -3,8 +3,8 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
var {utils: Cu, interfaces: Ci} = Components;
Cu.import("resource:///modules/devtools/client/framework/gDevTools.jsm");
const {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
Cu.import("resource://devtools/client/framework/gDevTools.jsm");
const {require} = Cu.import("resource://devtools/shared/Loader.jsm", {});
const {Toolbox} = require("devtools/client/framework/toolbox");
const {ConnectionManager, Connection} = require("devtools/shared/client/connection-manager");
const promise = require("devtools/shared/deprecated-sync-thenables");

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

@ -5,7 +5,7 @@
Cu.import("resource://gre/modules/osfile.jsm");
const {VariablesView} =
Cu.import("resource:///modules/devtools/client/shared/widgets/VariablesView.jsm", {});
Cu.import("resource://devtools/client/shared/widgets/VariablesView.jsm", {});
const VARIABLES_VIEW_URL =
"chrome://devtools/content/shared/widgets/VariablesView.xul";

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

@ -6,8 +6,8 @@ var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
Cu.import("resource:///modules/devtools/client/framework/gDevTools.jsm");
const {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
Cu.import("resource://devtools/client/framework/gDevTools.jsm");
const {require} = Cu.import("resource://devtools/shared/Loader.jsm", {});
const {ConnectionManager, Connection} = require("devtools/shared/client/connection-manager");
const {AppProjects} = require("devtools/client/app-manager/app-projects");
const {AppValidator} = require("devtools/client/app-manager/app-validator");
@ -15,7 +15,7 @@ const {Services} = Cu.import("resource://gre/modules/Services.jsm");
const {FileUtils} = Cu.import("resource://gre/modules/FileUtils.jsm");
const {installHosted, installPackaged, getTargetForApp,
reloadApp, launchApp, closeApp} = require("devtools/shared/apps/app-actor-front");
const {EventEmitter} = Cu.import("resource://gre/modules/devtools/shared/event-emitter.js");
const {EventEmitter} = Cu.import("resource://devtools/shared/event-emitter.js");
const promise = require("devtools/shared/deprecated-sync-thenables");

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

@ -14,7 +14,7 @@
var Utils = (function() {
const Cu = Components.utils;
const {Services} = Cu.import("resource://gre/modules/Services.jsm", {});
const {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
const {require} = Cu.import("resource://devtools/shared/Loader.jsm", {});
const EventEmitter = require("devtools/shared/event-emitter");

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

@ -4,7 +4,7 @@
const {Cu} = require("chrome");
const ObservableObject = require("devtools/client/shared/observable-object");
const {Simulator} = Cu.import("resource://gre/modules/devtools/shared/apps/Simulator.jsm");
const {Simulator} = Cu.import("resource://devtools/shared/apps/Simulator.jsm");
var store = new ObservableObject({versions:[]});

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

@ -5,9 +5,9 @@
var {utils: Cu, classes: Cc, interfaces: Ci} = Components;
const {Promise: promise} =
Cu.import("resource://gre/modules/devtools/shared/deprecated-sync-thenables.js", {});
Cu.import("resource://devtools/shared/deprecated-sync-thenables.js", {});
const {require} =
Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
Cu.import("resource://devtools/shared/Loader.jsm", {});
const {AppProjects} = require("devtools/client/app-manager/app-projects");
const DevToolsUtils = require("devtools/shared/DevToolsUtils");

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

@ -18,7 +18,7 @@
const Cc = Components.classes;
const Ci = Components.interfaces;
Cu.import("resource://testing-common/httpd.js");
const {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
const {require} = Cu.import("resource://devtools/shared/Loader.jsm", {});
const {AppValidator} = require("devtools/client/app-manager/app-validator");
const {Services} = Cu.import("resource://gre/modules/Services.jsm");

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

@ -25,7 +25,7 @@ Bug 901519 - [app manager] data store for connections
<script type="application/javascript;version=1.8" src="chrome://devtools/content/app-manager/content/template.js"></script>
<script type="application/javascript;version=1.8">
const Cu = Components.utils;
const {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm");
const {require} = Cu.import("resource://devtools/shared/Loader.jsm");
const {DebuggerServer} = require("devtools/server/main");
if (!DebuggerServer.initialized) {
@ -37,7 +37,7 @@ Bug 901519 - [app manager] data store for connections
SimpleTest.waitForExplicitFinish();
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource:///modules/devtools/client/framework/gDevTools.jsm");
Cu.import("resource://devtools/client/framework/gDevTools.jsm");
const {ConnectionManager} = require("devtools/shared/client/connection-manager");
const ConnectionStore = require("devtools/client/app-manager/connection-store");

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

@ -19,7 +19,7 @@ Bug 901520 - [app manager] data store for device
<script type="application/javascript;version=1.8" src="chrome://devtools/content/app-manager/content/template.js"></script>
<script type="application/javascript;version=1.8">
const Cu = Components.utils;
const {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm");
const {require} = Cu.import("resource://devtools/shared/Loader.jsm");
const {DebuggerServer} = require("devtools/server/main");
if (!DebuggerServer.initialized) {
@ -35,7 +35,7 @@ Bug 901520 - [app manager] data store for device
SimpleTest.waitForExplicitFinish();
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource:///modules/devtools/client/framework/gDevTools.jsm");
Cu.import("resource://devtools/client/framework/gDevTools.jsm");
const {ConnectionManager} = require("devtools/shared/client/connection-manager");
const DeviceStore = require("devtools/client/app-manager/device-store");

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

@ -22,7 +22,7 @@ Bug 907206 - data store for local apps
window.onload = function() {
SimpleTest.waitForExplicitFinish();
const { require } = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
const { require } = Cu.import("resource://devtools/shared/Loader.jsm", {});
const { AppProjects } = require("devtools/client/app-manager/app-projects");

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

@ -18,7 +18,7 @@ Bug 912646 - Closing app toolbox causes phone to disconnect
<script type="application/javascript;version=1.8">
const Cu = Components.utils;
const {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm");
const {require} = Cu.import("resource://devtools/shared/Loader.jsm");
const {DebuggerServer} = require("devtools/server/main");
if (!DebuggerServer.initialized) {
@ -29,7 +29,7 @@ Bug 912646 - Closing app toolbox causes phone to disconnect
window.onload = function() {
SimpleTest.waitForExplicitFinish();
Cu.import("resource:///modules/devtools/client/framework/gDevTools.jsm");
Cu.import("resource://devtools/client/framework/gDevTools.jsm");
const {TargetFactory} = require("devtools/client/framework/target");
const {Toolbox} = require("devtools/client/framework/toolbox");

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

@ -158,8 +158,8 @@
SimpleTest.waitForExplicitFinish();
const Cu = Components.utils;
Cu.import("resource:///modules/devtools/client/framework/gDevTools.jsm");
const {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
Cu.import("resource://devtools/client/framework/gDevTools.jsm");
const {require} = Cu.import("resource://devtools/shared/Loader.jsm", {});
const ObservableObject = require("devtools/client/shared/observable-object");
let data = {

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

@ -7,11 +7,11 @@ var { classes: Cc, interfaces: Ci, utils: Cu, results: Cr } = Components;
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource:///modules/devtools/client/shared/widgets/SideMenuWidget.jsm");
Cu.import("resource:///modules/devtools/client/shared/widgets/ViewHelpers.jsm");
Cu.import("resource://devtools/client/shared/widgets/SideMenuWidget.jsm");
Cu.import("resource://devtools/client/shared/widgets/ViewHelpers.jsm");
Cu.import("resource://gre/modules/Console.jsm");
const { require } = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
const { require } = Cu.import("resource://devtools/shared/Loader.jsm", {});
const promise = require("promise");
const EventEmitter = require("devtools/shared/event-emitter");
const { CallWatcherFront } = require("devtools/server/actors/call-watcher");

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

@ -13,8 +13,8 @@ Services.prefs.setBoolPref("devtools.debugger.log", false);
var { generateUUID } = Cc['@mozilla.org/uuid-generator;1'].getService(Ci.nsIUUIDGenerator);
var { Task } = Cu.import("resource://gre/modules/Task.jsm", {});
var { gDevTools } = Cu.import("resource:///modules/devtools/client/framework/gDevTools.jsm", {});
var { require } = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
var { gDevTools } = Cu.import("resource://devtools/client/framework/gDevTools.jsm", {});
var { require } = Cu.import("resource://devtools/shared/Loader.jsm", {});
var promise = require("promise");
var { DebuggerClient } = require("devtools/shared/client/main");

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

@ -5,7 +5,7 @@
const TEST_BASE_HTTP = "http://example.com/browser/devtools/client/commandline/test/";
const TEST_BASE_HTTPS = "https://example.com/browser/devtools/client/commandline/test/";
var { require } = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
var { require } = Cu.import("resource://devtools/shared/Loader.jsm", {});
var { console } = require("resource://gre/modules/Console.jsm");
var DevToolsUtils = require("devtools/shared/DevToolsUtils");

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

@ -22,7 +22,7 @@ var { helpers, assert } = (function() {
var helpers = {};
var { require } = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
var { require } = Cu.import("resource://devtools/shared/Loader.jsm", {});
var { TargetFactory } = require("devtools/client/framework/target");
var assert = { ok: ok, is: is, log: info };

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

@ -7,7 +7,7 @@
const { Cc, Ci, Cu } = require("chrome");
const l10n = require("gcli/l10n");
loader.lazyImporter(this, "gDevTools", "resource:///modules/devtools/client/framework/gDevTools.jsm");
loader.lazyImporter(this, "gDevTools", "resource://devtools/client/framework/gDevTools.jsm");
/**
* The commands and converters that are exported to GCLI

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

@ -95,16 +95,16 @@ const FRAME_TYPE = {
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/devtools/shared/event-emitter.js");
Cu.import("resource:///modules/devtools/client/shared/widgets/SimpleListWidget.jsm");
Cu.import("resource:///modules/devtools/client/shared/widgets/BreadcrumbsWidget.jsm");
Cu.import("resource:///modules/devtools/client/shared/widgets/SideMenuWidget.jsm");
Cu.import("resource:///modules/devtools/client/shared/widgets/VariablesView.jsm");
Cu.import("resource:///modules/devtools/client/shared/widgets/VariablesViewController.jsm");
Cu.import("resource:///modules/devtools/client/shared/widgets/ViewHelpers.jsm");
Cu.import("resource://devtools/shared/event-emitter.js");
Cu.import("resource://devtools/client/shared/widgets/SimpleListWidget.jsm");
Cu.import("resource://devtools/client/shared/widgets/BreadcrumbsWidget.jsm");
Cu.import("resource://devtools/client/shared/widgets/SideMenuWidget.jsm");
Cu.import("resource://devtools/client/shared/widgets/VariablesView.jsm");
Cu.import("resource://devtools/client/shared/widgets/VariablesViewController.jsm");
Cu.import("resource://devtools/client/shared/widgets/ViewHelpers.jsm");
Cu.import("resource:///modules/devtools/client/shared/browser-loader.js");
const require = BrowserLoader("resource:///modules/devtools/client/debugger/", this).require;
Cu.import("resource://devtools/client/shared/browser-loader.js");
const require = BrowserLoader("resource://devtools/client/debugger/", this).require;
XPCOMUtils.defineConstant(this, "require", require);
const {TargetFactory} = require("devtools/client/framework/target");
@ -122,7 +122,7 @@ XPCOMUtils.defineLazyModuleGetter(this, "Task",
"resource://gre/modules/Task.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "Parser",
"resource://gre/modules/devtools/shared/Parser.jsm");
"resource://devtools/shared/Parser.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "ShortcutUtils",
"resource://gre/modules/ShortcutUtils.jsm");

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

@ -12,7 +12,7 @@ var gAttached = promise.defer();
var gNewGlobal = promise.defer()
var gNewChromeSource = promise.defer()
var { DevToolsLoader } = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
var { DevToolsLoader } = Cu.import("resource://devtools/shared/Loader.jsm", {});
var loader = new DevToolsLoader();
loader.invisibleToDebugger = true;
loader.main("devtools/server/main");

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

@ -6,7 +6,7 @@
*/
function test() {
let { Parser } = Cu.import("resource://gre/modules/devtools/shared/Parser.jsm", {});
let { Parser } = Cu.import("resource://devtools/shared/Parser.jsm", {});
let source = "let x = 42;";
let parser = new Parser();

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

@ -6,7 +6,7 @@
*/
function test() {
let { Parser } = Cu.import("resource://gre/modules/devtools/shared/Parser.jsm", {});
let { Parser } = Cu.import("resource://devtools/shared/Parser.jsm", {});
let source = "let x + 42;";
let parser = new Parser();

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

@ -6,7 +6,7 @@
*/
function test() {
let { Parser } = Cu.import("resource://gre/modules/devtools/shared/Parser.jsm", {});
let { Parser } = Cu.import("resource://devtools/shared/Parser.jsm", {});
let source = [
"<!doctype html>",

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

@ -6,7 +6,7 @@
*/
function test() {
let { Parser } = Cu.import("resource://gre/modules/devtools/shared/Parser.jsm", {});
let { Parser } = Cu.import("resource://devtools/shared/Parser.jsm", {});
let source = [
"<!doctype html>",

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

@ -7,7 +7,7 @@
*/
function test() {
let { Parser } = Cu.import("resource://gre/modules/devtools/shared/Parser.jsm", {});
let { Parser } = Cu.import("resource://devtools/shared/Parser.jsm", {});
let source = [
"let a = [];",

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

@ -8,7 +8,7 @@
function test() {
let { Parser, ParserHelpers, SyntaxTreeVisitor } =
Cu.import("resource://gre/modules/devtools/shared/Parser.jsm", {});
Cu.import("resource://devtools/shared/Parser.jsm", {});
function verify(source, predicate, [sline, scol], [eline, ecol]) {
let ast = Parser.reflectionAPI.parse(source);

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

@ -7,7 +7,7 @@
*/
function test() {
let { ParserHelpers } = Cu.import("resource://gre/modules/devtools/shared/Parser.jsm", {});
let { ParserHelpers } = Cu.import("resource://devtools/shared/Parser.jsm", {});
let node1 = { loc: {
start: { line: 1, column: 10 },

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

@ -7,7 +7,7 @@
function test() {
let { Parser, ParserHelpers, SyntaxTreeVisitor } =
Cu.import("resource://gre/modules/devtools/shared/Parser.jsm", {});
Cu.import("resource://devtools/shared/Parser.jsm", {});
function verify(source, predicate, details) {
let { name, chain } = details;

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

@ -8,7 +8,7 @@
function test() {
let { Parser, ParserHelpers, SyntaxTreeVisitor } =
Cu.import("resource://gre/modules/devtools/shared/Parser.jsm", {});
Cu.import("resource://devtools/shared/Parser.jsm", {});
function verify(source, predicate, details) {
let { name, chain } = details;

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

@ -7,7 +7,7 @@
function test() {
let { Parser, ParserHelpers, SyntaxTreeVisitor } =
Cu.import("resource://gre/modules/devtools/shared/Parser.jsm", {});
Cu.import("resource://devtools/shared/Parser.jsm", {});
function verify(source, predicate, string) {
let ast = Parser.reflectionAPI.parse(source);

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

@ -4,7 +4,7 @@ function a(){b()}function b(){debugger}
// Generate this file by evaluating the following in a browser-environment
// scratchpad:
//
// let { require } = Components.utils.import('resource://gre/modules/devtools/shared/Loader.jsm', {});
// let { require } = Components.utils.import('resource://devtools/shared/Loader.jsm', {});
// let { SourceNode } = require("source-map");
//
// let dataUrl = s => "data:text/javascript," + s;

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

@ -13,11 +13,11 @@ var gEnableLogging = Services.prefs.getBoolPref("devtools.debugger.log");
Services.prefs.setBoolPref("devtools.debugger.log", false);
var { Task } = Cu.import("resource://gre/modules/Task.jsm", {});
var { Promise: promise } = Cu.import("resource://gre/modules/devtools/shared/deprecated-sync-thenables.js", {});
var { gDevTools } = Cu.import("resource:///modules/devtools/client/framework/gDevTools.jsm", {});
var { require } = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
var { Promise: promise } = Cu.import("resource://devtools/shared/deprecated-sync-thenables.js", {});
var { gDevTools } = Cu.import("resource://devtools/client/framework/gDevTools.jsm", {});
var { require } = Cu.import("resource://devtools/shared/Loader.jsm", {});
var DevToolsUtils = require("devtools/shared/DevToolsUtils");
var { BrowserToolboxProcess } = Cu.import("resource:///modules/devtools/client/framework/ToolboxProcess.jsm", {});
var { BrowserToolboxProcess } = Cu.import("resource://devtools/client/framework/ToolboxProcess.jsm", {});
var { DebuggerServer } = require("devtools/server/main");
var { DebuggerClient, ObjectClient } = require("devtools/shared/client/main");
var { AddonManager } = Cu.import("resource://gre/modules/AddonManager.jsm", {});

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

@ -39,9 +39,9 @@ devtoolsCommandlineHandler.prototype = {
handleConsoleFlag: function(cmdLine) {
let window = Services.wm.getMostRecentWindow("devtools:webconsole");
if (!window) {
let { require } = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
let { require } = Cu.import("resource://devtools/shared/Loader.jsm", {});
// Load the browser devtools main module as the loader's main module.
Cu.import("resource:///modules/devtools/client/framework/gDevTools.jsm");
Cu.import("resource://devtools/client/framework/gDevTools.jsm");
let hudservice = require("devtools/client/webconsole/hudservice");
let { console } = Cu.import("resource://gre/modules/Console.jsm", {});
hudservice.toggleBrowserConsole().then(null, console.error);
@ -77,7 +77,7 @@ devtoolsCommandlineHandler.prototype = {
if (!this._isRemoteDebuggingEnabled()) {
return;
}
Cu.import("resource:///modules/devtools/client/framework/ToolboxProcess.jsm");
Cu.import("resource://devtools/client/framework/ToolboxProcess.jsm");
BrowserToolboxProcess.init();
if (cmdLine.state == Ci.nsICommandLine.STATE_REMOTE_AUTO) {
@ -94,7 +94,7 @@ devtoolsCommandlineHandler.prototype = {
portOrPath = 6000;
}
let { DevToolsLoader } =
Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
Cu.import("resource://devtools/shared/Loader.jsm", {});
try {
// Create a separate loader instance, so that we can be sure to receive

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

@ -5,7 +5,7 @@
const {Cc, Ci, Cu} = require("chrome");
const {rgbToHsl} = require("devtools/shared/css-color").colorUtils;
const Telemetry = require("devtools/client/shared/telemetry");
const {EventEmitter} = Cu.import("resource://gre/modules/devtools/shared/event-emitter.js");
const {EventEmitter} = Cu.import("resource://devtools/shared/event-emitter.js");
const promise = require("promise");
const {setTimeout, clearTimeout} = Cu.import("resource://gre/modules/Timer.jsm", {});
@ -133,7 +133,7 @@ function Eyedropper(chromeWindow, opts = { copyOnSelect: true, context: "other"
};
let mm = this._contentTab.linkedBrowser.messageManager;
mm.loadFrameScript("resource:///modules/devtools/client/eyedropper/eyedropper-child.js", true);
mm.loadFrameScript("resource://devtools/client/eyedropper/eyedropper-child.js", true);
// record if this was opened via the picker or standalone
var telemetry = new Telemetry();

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

@ -12,7 +12,7 @@ const CHROME_DEBUGGER_PROFILE_NAME = "chrome_debugger_profile";
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://gre/modules/XPCOMUtils.jsm")
const { require, DevToolsLoader } = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
const { require, DevToolsLoader } = Cu.import("resource://devtools/shared/Loader.jsm", {});
XPCOMUtils.defineLazyGetter(this, "Telemetry", function () {
return require("devtools/client/shared/telemetry");

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

@ -10,8 +10,8 @@ var Cu = Components.utils;
Cu.import('resource://gre/modules/XPCOMUtils.jsm');
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://gre/modules/Task.jsm");
var {gDevTools} = Cu.import("resource:///modules/devtools/client/framework/gDevTools.jsm", {});
var {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
var {gDevTools} = Cu.import("resource://devtools/client/framework/gDevTools.jsm", {});
var {require} = Cu.import("resource://devtools/shared/Loader.jsm", {});
var {TargetFactory} = require("devtools/client/framework/target");
var {Toolbox} = require("devtools/client/framework/toolbox")
var promise = require("promise");

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

@ -10,7 +10,7 @@ const { classes: Cc, interfaces: Ci, utils: Cu } = Components;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/Services.jsm");
const { require, loader } = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
const { require, loader } = Cu.import("resource://devtools/shared/Loader.jsm", {});
const promise = require("promise");
// Load target and toolbox lazily as they need gDevTools to be fully initialized
loader.lazyRequireGetter(this, "TargetFactory", "devtools/client/framework/target", true);

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

@ -17,7 +17,7 @@ const toolId1 = "test-tool-1";
const toolId2 = "test-tool-2";
var tempScope = {};
Cu.import("resource://gre/modules/devtools/shared/event-emitter.js", tempScope);
Cu.import("resource://devtools/shared/event-emitter.js", tempScope);
var EventEmitter = tempScope.EventEmitter;
function test() {

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

@ -13,10 +13,10 @@ function scopedCuImport(path) {
}
const {Services} = scopedCuImport("resource://gre/modules/Services.jsm");
const {gDevTools} = scopedCuImport("resource:///modules/devtools/client/framework/gDevTools.jsm");
const {gDevTools} = scopedCuImport("resource://devtools/client/framework/gDevTools.jsm");
const {console} = scopedCuImport("resource://gre/modules/Console.jsm");
const {ScratchpadManager} = scopedCuImport("resource:///modules/devtools/client/scratchpad/scratchpad-manager.jsm");
const {require} = scopedCuImport("resource://gre/modules/devtools/shared/Loader.jsm");
const {ScratchpadManager} = scopedCuImport("resource://devtools/client/scratchpad/scratchpad-manager.jsm");
const {require} = scopedCuImport("resource://devtools/shared/Loader.jsm");
const {TargetFactory} = require("devtools/client/framework/target");
const DevToolsUtils = require("devtools/shared/DevToolsUtils");

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

@ -8,7 +8,7 @@ const {Cu} = require("chrome");
const EventEmitter = require("devtools/shared/event-emitter");
const promise = require("promise");
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource:///modules/devtools/client/shared/DOMHelpers.jsm");
Cu.import("resource://devtools/client/shared/DOMHelpers.jsm");
/* A host should always allow this much space for the page to be displayed.
* There is also a min-height on the browser, but we still don't want to set

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

@ -8,7 +8,7 @@ const {Cu, Cc, Ci} = require("chrome");
const Services = require("Services");
const promise = require("promise");
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "gDevTools", "resource:///modules/devtools/client/framework/gDevTools.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "gDevTools", "resource://devtools/client/framework/gDevTools.jsm");
exports.OptionsPanel = OptionsPanel;

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

@ -5,14 +5,14 @@
var { classes: Cc, interfaces: Ci, utils: Cu } = Components;
var { gDevTools } = Cu.import("resource:///modules/devtools/client/framework/gDevTools.jsm", {});
var { require } = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
var { gDevTools } = Cu.import("resource://devtools/client/framework/gDevTools.jsm", {});
var { require } = Cu.import("resource://devtools/shared/Loader.jsm", {});
var { TargetFactory } = require("devtools/client/framework/target");
var { Toolbox } = require("devtools/client/framework/toolbox");
var { Services } = Cu.import("resource://gre/modules/Services.jsm", {});
var { DebuggerClient } = require("devtools/shared/client/main");
var { ViewHelpers } =
Cu.import("resource:///modules/devtools/client/shared/widgets/ViewHelpers.jsm", {});
Cu.import("resource://devtools/client/shared/widgets/ViewHelpers.jsm", {});
var { Task } = Cu.import("resource://gre/modules/Task.jsm", {});
/**

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

@ -22,13 +22,13 @@ var HUDService = require("devtools/client/webconsole/hudservice");
var sourceUtils = require("devtools/client/shared/source-utils");
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource:///modules/devtools/client/framework/gDevTools.jsm");
Cu.import("resource:///modules/devtools/client/scratchpad/scratchpad-manager.jsm");
Cu.import("resource:///modules/devtools/client/shared/DOMHelpers.jsm");
Cu.import("resource://devtools/client/framework/gDevTools.jsm");
Cu.import("resource://devtools/client/scratchpad/scratchpad-manager.jsm");
Cu.import("resource://devtools/client/shared/DOMHelpers.jsm");
Cu.import("resource://gre/modules/Task.jsm");
loader.lazyImporter(this, "CommandUtils",
"resource:///modules/devtools/client/shared/DeveloperToolbar.jsm");
"resource://devtools/client/shared/DeveloperToolbar.jsm");
loader.lazyGetter(this, "toolboxStrings", () => {
const properties = "chrome://browser/locale/devtools/toolbox.properties";
const bundle = Services.strings.createBundle(properties);
@ -1647,7 +1647,7 @@ Toolbox.prototype = {
},
reload: function () {
const {devtools} = Cu.import("resource://gre/modules/devtools/Loader.jsm", {});
const {devtools} = Cu.import("resource://devtools/Loader.jsm", {});
devtools.reload(true);
},

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

@ -22,7 +22,7 @@ exports.items = [{
],
exec: function(args, context) {
let target = context.environment.target;
let gDevTools = require("resource:///modules/devtools/client/framework/gDevTools.jsm").gDevTools;
let gDevTools = require("resource://devtools/client/framework/gDevTools.jsm").gDevTools;
return gDevTools.showToolbox(target, "inspector").then(toolbox => {
toolbox.getCurrentPanel().selection.setNode(args.selector, "gcli");

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

@ -28,7 +28,7 @@ loader.lazyGetter(this, "clipboardHelper", () => {
return Cc["@mozilla.org/widget/clipboardhelper;1"].getService(Ci.nsIClipboardHelper);
});
loader.lazyImporter(this, "CommandUtils", "resource:///modules/devtools/client/shared/DeveloperToolbar.jsm");
loader.lazyImporter(this, "CommandUtils", "resource://devtools/client/shared/DeveloperToolbar.jsm");
const LAYOUT_CHANGE_TIMER = 250;

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

@ -23,7 +23,7 @@ var ROOT_TEST_DIR = getRootDirectory(gTestPath);
// All test are asynchronous
waitForExplicitFinish();
var {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
var {require} = Cu.import("resource://devtools/shared/Loader.jsm", {});
var {TargetFactory} = require("devtools/client/framework/target");
var {console} = Cu.import("resource://gre/modules/Console.jsm", {});
var DevToolsUtils = require("devtools/shared/DevToolsUtils");

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

@ -196,7 +196,7 @@ var Converter = Class({
toHTML: function(json, headers, title) {
var themeClassName = "theme-" + JsonViewUtils.getCurrentTheme();
var clientBaseUrl = "resource:///modules/devtools/client/";
var clientBaseUrl = "resource://devtools/client/";
var baseUrl = clientBaseUrl + "jsonview/";
var themeVarsUrl = clientBaseUrl + "themes/variables.css";

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

@ -15,7 +15,7 @@ const {Services} = Cu.import("resource://gre/modules/Services.jsm", {});
// Load devtools module lazily.
XPCOMUtils.defineLazyGetter(this, "devtools", function() {
const {devtools} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
const {devtools} = Cu.import("resource://devtools/shared/Loader.jsm", {});
return devtools;
});

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

@ -27,7 +27,7 @@ var JsonView = {
// them into a simple web-app that allows easy inspection
// of the JSON data.
Services.ppmm.loadProcessScript(
"resource:///modules/devtools/client/jsonview/converter-observer.js",
"resource://devtools/client/jsonview/converter-observer.js",
true);
this.onSaveListener = this.onSave.bind(this);

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

@ -21,8 +21,8 @@ require.config({
baseUrl: ".",
paths: {
"react": [
"resource:///modules/devtools/client/shared/vendor/react-dev",
"resource:///modules/devtools/client/shared/vendor/react"
"resource://devtools/client/shared/vendor/react-dev",
"resource://devtools/client/shared/vendor/react"
]
}
});

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

@ -5,8 +5,8 @@
"use strict";
var Cu = Components.utils;
var {gDevTools} = Cu.import("resource:///modules/devtools/client/framework/gDevTools.jsm", {});
var {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
var {gDevTools} = Cu.import("resource://devtools/client/framework/gDevTools.jsm", {});
var {require} = Cu.import("resource://devtools/shared/Loader.jsm", {});
var {console} = Cu.import("resource://gre/modules/Console.jsm", {});
var {TargetFactory} = require("devtools/client/framework/target");
var promise = require("promise");

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

@ -9,9 +9,9 @@
var {utils: Cu, interfaces: Ci, classes: Cc} = Components;
Cu.import("resource://gre/modules/Task.jsm");
const {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
const {require} = Cu.import("resource://devtools/shared/Loader.jsm", {});
Cu.import("resource://gre/modules/Console.jsm");
Cu.import("resource:///modules/devtools/client/shared/widgets/ViewHelpers.jsm");
Cu.import("resource://devtools/client/shared/widgets/ViewHelpers.jsm");
const {InplaceEditor, editableItem} = require("devtools/client/shared/inplace-editor");
const {ReflowFront} = require("devtools/server/actors/layout");

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

@ -6,7 +6,7 @@
const { Cu } = require("chrome");
Cu.import("resource://gre/modules/Services.jsm");
const { gDevTools } = require("resource:///modules/devtools/client/framework/gDevTools.jsm");
const { gDevTools } = require("resource://devtools/client/framework/gDevTools.jsm");
const { defaultTools, defaultThemes } = require("devtools/client/definitions");

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

@ -7,7 +7,7 @@
const {Cu} = require("chrome");
const Editor = require("devtools/client/sourceeditor/editor");
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://gre/modules/devtools/shared/event-emitter.js");
Cu.import("resource://devtools/shared/event-emitter.js");
exports.HTMLEditor = HTMLEditor;

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

@ -20,7 +20,7 @@ const AUTOCOMPLETE_POPUP_PANEL_ID = "markupview_autoCompletePopup";
const {UndoStack} = require("devtools/client/shared/undo");
const {editableField, InplaceEditor} = require("devtools/client/shared/inplace-editor");
const {gDevTools} = Cu.import("resource:///modules/devtools/client/framework/gDevTools.jsm", {});
const {gDevTools} = Cu.import("resource://devtools/client/framework/gDevTools.jsm", {});
const {HTMLEditor} = require("devtools/client/markupview/html-editor");
const promise = require("promise");
const {Tooltip} = require("devtools/client/shared/widgets/Tooltip");
@ -32,7 +32,7 @@ const ELLIPSIS = Services.prefs.getComplexValue("intl.ellipsis", Ci.nsIPrefLocal
const {Task} = require("resource://gre/modules/Task.jsm");
const {scrollIntoViewIfNeeded} = require("devtools/shared/layout/utils");
Cu.import("resource://gre/modules/devtools/shared/gcli/Templater.jsm");
Cu.import("resource://devtools/shared/gcli/Templater.jsm");
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://gre/modules/XPCOMUtils.jsm");

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

@ -3,7 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
var Cu = Components.utils;
var {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
var {require} = Cu.import("resource://devtools/shared/Loader.jsm", {});
var {TargetFactory} = require("devtools/client/framework/target");
var {console} = Cu.import("resource://gre/modules/Console.jsm", {});
var promise = require("promise");

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

@ -6,8 +6,8 @@
const { classes: Cc, interfaces: Ci, utils: Cu, results: Cr } = Components;
const BrowserLoaderModule = {};
Cu.import("resource:///modules/devtools/client/shared/browser-loader.js", BrowserLoaderModule);
const { require } = BrowserLoaderModule.BrowserLoader("resource:///modules/devtools/client/memory/", this);
Cu.import("resource://devtools/client/shared/browser-loader.js", BrowserLoaderModule);
const { require } = BrowserLoaderModule.BrowserLoader("resource://devtools/client/memory/", this);
const { Task } = require("resource://gre/modules/Task.jsm");
const { createFactory, createElement, render } = require("devtools/client/shared/vendor/react");
const { Provider } = require("devtools/client/shared/vendor/react-redux");

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

@ -10,8 +10,8 @@
*/
const { Cc, Ci, Cu, Cr } = require("chrome");
const { Heritage } = require("resource:///modules/devtools/client/shared/widgets/ViewHelpers.jsm");
const { AbstractTreeItem } = require("resource:///modules/devtools/client/shared/widgets/AbstractTreeItem.jsm");
const { Heritage } = require("resource://devtools/client/shared/widgets/ViewHelpers.jsm");
const { AbstractTreeItem } = require("resource://devtools/client/shared/widgets/AbstractTreeItem.jsm");
const INDENTATION = exports.INDENTATION = 16; // px
const DEFAULT_AUTO_EXPAND_DEPTH = 2;

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

@ -9,4 +9,4 @@ var Cu = Components.utils;
var Cr = Components.results;
var CC = Components.Constructor;
const { require } = Cu.import("resource://gre/modules/devtools/Loader.jsm", {});
const { require } = Cu.import("resource://devtools/Loader.jsm", {});

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

@ -5,9 +5,9 @@
var { classes: Cc, interfaces: Ci, utils: Cu, results: Cr } = Components;
var { Services } = Cu.import("resource://gre/modules/Services.jsm", {});
var { gDevTools } = Cu.import("resource:///modules/devtools/client/framework/gDevTools.jsm", {});
var { gDevTools } = Cu.import("resource://devtools/client/framework/gDevTools.jsm", {});
var { console } = Cu.import("resource://gre/modules/Console.jsm", {});
var { require } = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
var { require } = Cu.import("resource://devtools/shared/Loader.jsm", {});
var { TargetFactory } = require("devtools/client/framework/target");
var DevToolsUtils = require("devtools/shared/DevToolsUtils");
var promise = require("promise");

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

@ -7,7 +7,7 @@ const { Cu, Ci, Cc } = require("chrome");
const { defer, all, resolve } = require("promise");
const { Services } = Cu.import("resource://gre/modules/Services.jsm", {});
loader.lazyImporter(this, "ViewHelpers", "resource:///modules/devtools/client/shared/widgets/ViewHelpers.jsm");
loader.lazyImporter(this, "ViewHelpers", "resource://devtools/client/shared/widgets/ViewHelpers.jsm");
loader.lazyRequireGetter(this, "NetworkHelper", "devtools/shared/webconsole/network-helper");
loader.lazyGetter(this, "appInfo", () => {

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше