diff --git a/addon-sdk/source/lib/dev/debuggee.js b/addon-sdk/source/lib/dev/debuggee.js index 4ff89b851434..0ca0bd37a269 100644 --- a/addon-sdk/source/lib/dev/debuggee.js +++ b/addon-sdk/source/lib/dev/debuggee.js @@ -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(); diff --git a/addon-sdk/source/lib/dev/toolbox.js b/addon-sdk/source/lib/dev/toolbox.js index bfade3b1d0d1..e7957291e6cf 100644 --- a/addon-sdk/source/lib/dev/toolbox.js +++ b/addon-sdk/source/lib/dev/toolbox.js @@ -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 diff --git a/addon-sdk/source/lib/dev/utils.js b/addon-sdk/source/lib/dev/utils.js index 65aa301f1ccd..48db39e04ff3 100644 --- a/addon-sdk/source/lib/dev/utils.js +++ b/addon-sdk/source/lib/dev/utils.js @@ -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"); diff --git a/addon-sdk/source/lib/sdk/addon/bootstrap.js b/addon-sdk/source/lib/sdk/addon/bootstrap.js index adb3ffecbe09..094f9123c043 100644 --- a/addon-sdk/source/lib/sdk/addon/bootstrap.js +++ b/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, diff --git a/addon-sdk/source/lib/sdk/addon/runner.js b/addon-sdk/source/lib/sdk/addon/runner.js index 633194896acf..3977a04e4ae2 100644 --- a/addon-sdk/source/lib/sdk/addon/runner.js +++ b/addon-sdk/source/lib/sdk/addon/runner.js @@ -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; }); diff --git a/addon-sdk/source/lib/sdk/loader/sandbox.js b/addon-sdk/source/lib/sdk/loader/sandbox.js index 765f5ba5319a..2c368faaf931 100644 --- a/addon-sdk/source/lib/sdk/loader/sandbox.js +++ b/addon-sdk/source/lib/sdk/loader/sandbox.js @@ -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"); diff --git a/addon-sdk/source/lib/toolkit/require.js b/addon-sdk/source/lib/toolkit/require.js index ed1a36788132..dc3d26ab2971 100644 --- a/addon-sdk/source/lib/toolkit/require.js +++ b/addon-sdk/source/lib/toolkit/require.js @@ -12,7 +12,7 @@ const make = (exports, rootURI, components) => { isNative: true, paths: { "": rootURI, - "devtools/": "resource://gre/modules/devtools/" + "devtools/": "resource://devtools/" } }); diff --git a/addon-sdk/source/test/addons/page-mod-debugger-post/main.js b/addon-sdk/source/test/addons/page-mod-debugger-post/main.js index 8dbe8004c226..703399c21bda 100644 --- a/addon-sdk/source/test/addons/page-mod-debugger-post/main.js +++ b/addon-sdk/source/test/addons/page-mod-debugger-post/main.js @@ -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"); diff --git a/addon-sdk/source/test/addons/page-mod-debugger-pre/main.js b/addon-sdk/source/test/addons/page-mod-debugger-pre/main.js index 04b8b1c8466f..366e9e437051 100644 --- a/addon-sdk/source/test/addons/page-mod-debugger-pre/main.js +++ b/addon-sdk/source/test/addons/page-mod-debugger-pre/main.js @@ -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"); diff --git a/addon-sdk/source/test/test-page-mod-debug.js b/addon-sdk/source/test/test-page-mod-debug.js index 05470e6fe375..86f491149200 100644 --- a/addon-sdk/source/test/test-page-mod-debug.js +++ b/addon-sdk/source/test/test-page-mod-debug.js @@ -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"); diff --git a/b2g/chrome/content/desktop.js b/b2g/chrome/content/desktop.js index 9ffd22041f95..767ec9375db6 100644 --- a/b2g/chrome/content/desktop.js +++ b/b2g/chrome/content/desktop.js @@ -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); } diff --git a/b2g/chrome/content/devtools/debugger.js b/b2g/chrome/content/devtools/debugger.js index 9e8617e2da9b..b55142bb9b80 100644 --- a/b2g/chrome/content/devtools/debugger.js +++ b/b2g/chrome/content/devtools/debugger.js @@ -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; }); diff --git a/b2g/chrome/content/devtools/hud.js b/b2g/chrome/content/devtools/hud.js index c62d0f358b21..e461d32d7f89 100644 --- a/b2g/chrome/content/devtools/hud.js +++ b/b2g/chrome/content/devtools/hud.js @@ -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; }); diff --git a/b2g/simulator/bootstrap.js b/b2g/simulator/bootstrap.js index 04f80950a779..93d7e74b566a 100644 --- a/b2g/simulator/bootstrap.js +++ b/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: { diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js index 7aecf7d7c182..04ca7765218b 100644 --- a/browser/base/content/browser.js +++ b/browser/base/content/browser.js @@ -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, diff --git a/browser/base/content/nsContextMenu.js b/browser/base/content/nsContextMenu.js index 0793ffe4a6bd..7f00700e4e74 100644 --- a/browser/base/content/nsContextMenu.js +++ b/browser/base/content/nsContextMenu.js @@ -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) { diff --git a/browser/base/content/sanitize.js b/browser/base/content/sanitize.js index e98cf3add9a7..a6612de59285 100644 --- a/browser/base/content/sanitize.js +++ b/browser/base/content/sanitize.js @@ -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", diff --git a/browser/components/extensions/ext-browserAction.js b/browser/components/extensions/ext-browserAction.js index 500098958510..782bf6a23525 100644 --- a/browser/components/extensions/ext-browserAction.js +++ b/browser/components/extensions/ext-browserAction.js @@ -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 { diff --git a/browser/components/loop/modules/LoopContacts.jsm b/browser/components/loop/modules/LoopContacts.jsm index 24553b91c37b..988c1746bc53 100644 --- a/browser/components/loop/modules/LoopContacts.jsm +++ b/browser/components/loop/modules/LoopContacts.jsm @@ -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(); }); diff --git a/browser/components/loop/modules/LoopRooms.jsm b/browser/components/loop/modules/LoopRooms.jsm index 70367e4866f9..7737485d72de 100644 --- a/browser/components/loop/modules/LoopRooms.jsm +++ b/browser/components/loop/modules/LoopRooms.jsm @@ -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() { diff --git a/browser/components/loop/modules/LoopStorage.jsm b/browser/components/loop/modules/LoopStorage.jsm index aef5a9213fdd..f26e54393277 100644 --- a/browser/components/loop/modules/LoopStorage.jsm +++ b/browser/components/loop/modules/LoopStorage.jsm @@ -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(); }); diff --git a/browser/components/newtab/PlacesProvider.jsm b/browser/components/newtab/PlacesProvider.jsm index 21639f487961..bca4fe6dd04e 100644 --- a/browser/components/newtab/PlacesProvider.jsm +++ b/browser/components/newtab/PlacesProvider.jsm @@ -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; }); diff --git a/browser/components/sessionstore/SessionStore.jsm b/browser/components/sessionstore/SessionStore.jsm index 56ab39dd3205..4224277257f6 100644 --- a/browser/components/sessionstore/SessionStore.jsm +++ b/browser/components/sessionstore/SessionStore.jsm @@ -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) { diff --git a/devtools/client/aboutdebugging/aboutdebugging.js b/devtools/client/aboutdebugging/aboutdebugging.js index dbb0321521a7..86af2a61b86b 100644 --- a/devtools/client/aboutdebugging/aboutdebugging.js +++ b/devtools/client/aboutdebugging/aboutdebugging.js @@ -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); diff --git a/devtools/client/aboutdebugging/aboutdebugging.xhtml b/devtools/client/aboutdebugging/aboutdebugging.xhtml index cd04e09e6937..af401d02d5f3 100644 --- a/devtools/client/aboutdebugging/aboutdebugging.xhtml +++ b/devtools/client/aboutdebugging/aboutdebugging.xhtml @@ -15,7 +15,7 @@ - +
diff --git a/devtools/client/aboutdebugging/components/addons.js b/devtools/client/aboutdebugging/components/addons.js index b31e3e420048..803a7848a8e6 100644 --- a/devtools/client/aboutdebugging/components/addons.js +++ b/devtools/client/aboutdebugging/components/addons.js @@ -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"); diff --git a/devtools/client/aboutdebugging/components/target-list.js b/devtools/client/aboutdebugging/components/target-list.js index 21c6f45985d9..356f2aeed3ee 100644 --- a/devtools/client/aboutdebugging/components/target-list.js +++ b/devtools/client/aboutdebugging/components/target-list.js @@ -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"); diff --git a/devtools/client/aboutdebugging/components/target.js b/devtools/client/aboutdebugging/components/target.js index 59edf85acf78..6ba31e1e60e9 100644 --- a/devtools/client/aboutdebugging/components/target.js +++ b/devtools/client/aboutdebugging/components/target.js @@ -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"); diff --git a/devtools/client/aboutdebugging/components/workers.js b/devtools/client/aboutdebugging/components/workers.js index 74e03258b9ff..fcbf67aa4071 100644 --- a/devtools/client/aboutdebugging/components/workers.js +++ b/devtools/client/aboutdebugging/components/workers.js @@ -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"); diff --git a/devtools/client/animationinspector/animation-controller.js b/devtools/client/animationinspector/animation-controller.js index 60364dfefd1f..890319f23a99 100644 --- a/devtools/client/animationinspector/animation-controller.js +++ b/devtools/client/animationinspector/animation-controller.js @@ -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", diff --git a/devtools/client/animationinspector/components.js b/devtools/client/animationinspector/components.js index a726ad73306c..7e775956d1c0 100644 --- a/devtools/client/animationinspector/components.js +++ b/devtools/client/animationinspector/components.js @@ -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, diff --git a/devtools/client/animationinspector/test/head.js b/devtools/client/animationinspector/test/head.js index 210493e4061f..33a2fc0e4674 100644 --- a/devtools/client/animationinspector/test/head.js +++ b/devtools/client/animationinspector/test/head.js @@ -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 diff --git a/devtools/client/animationinspector/test/unit/test_findOptimalTimeInterval.js b/devtools/client/animationinspector/test/unit/test_findOptimalTimeInterval.js index 08bc1cbf8b56..5fab2b43a3b5 100644 --- a/devtools/client/animationinspector/test/unit/test_findOptimalTimeInterval.js +++ b/devtools/client/animationinspector/test/unit/test_findOptimalTimeInterval.js @@ -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 diff --git a/devtools/client/animationinspector/test/unit/test_formatStopwatchTime.js b/devtools/client/animationinspector/test/unit/test_formatStopwatchTime.js index 55a936642f5f..a23d7a555dc6 100644 --- a/devtools/client/animationinspector/test/unit/test_formatStopwatchTime.js +++ b/devtools/client/animationinspector/test/unit/test_formatStopwatchTime.js @@ -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"); diff --git a/devtools/client/animationinspector/test/unit/test_timeScale.js b/devtools/client/animationinspector/test/unit/test_timeScale.js index afb33337ae7f..2ec3ae3ea6ae 100644 --- a/devtools/client/animationinspector/test/unit/test_timeScale.js +++ b/devtools/client/animationinspector/test/unit/test_timeScale.js @@ -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 = [{ diff --git a/devtools/client/animationinspector/utils.js b/devtools/client/animationinspector/utils.js index 5db7d011a670..bbf6eff2267b 100644 --- a/devtools/client/animationinspector/utils.js +++ b/devtools/client/animationinspector/utils.js @@ -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"); diff --git a/devtools/client/app-manager/app-projects.js b/devtools/client/app-manager/app-projects.js index ef487b05befb..d616bdbdf1e3 100644 --- a/devtools/client/app-manager/app-projects.js +++ b/devtools/client/app-manager/app-projects.js @@ -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"); diff --git a/devtools/client/app-manager/builtin-adb-store.js b/devtools/client/app-manager/builtin-adb-store.js index ae8e5963e41e..b015cee9ed4e 100644 --- a/devtools/client/app-manager/builtin-adb-store.js +++ b/devtools/client/app-manager/builtin-adb-store.js @@ -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:[]}); diff --git a/devtools/client/app-manager/content/connection-footer.js b/devtools/client/app-manager/content/connection-footer.js index d04b34d82922..c370890d929f 100644 --- a/devtools/client/app-manager/content/connection-footer.js +++ b/devtools/client/app-manager/content/connection-footer.js @@ -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"); diff --git a/devtools/client/app-manager/content/device.js b/devtools/client/app-manager/content/device.js index b0abefa5901a..aacd6639864c 100644 --- a/devtools/client/app-manager/content/device.js +++ b/devtools/client/app-manager/content/device.js @@ -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} diff --git a/devtools/client/app-manager/content/index.js b/devtools/client/app-manager/content/index.js index 99c91038d4dc..ee2be762ef67 100644 --- a/devtools/client/app-manager/content/index.js +++ b/devtools/client/app-manager/content/index.js @@ -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"); diff --git a/devtools/client/app-manager/content/manifest-editor.js b/devtools/client/app-manager/content/manifest-editor.js index 8f8cdfead9a6..9f176ed63c69 100644 --- a/devtools/client/app-manager/content/manifest-editor.js +++ b/devtools/client/app-manager/content/manifest-editor.js @@ -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"; diff --git a/devtools/client/app-manager/content/projects.js b/devtools/client/app-manager/content/projects.js index 11eeeda84203..ab7860cfa823 100644 --- a/devtools/client/app-manager/content/projects.js +++ b/devtools/client/app-manager/content/projects.js @@ -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"); diff --git a/devtools/client/app-manager/content/utils.js b/devtools/client/app-manager/content/utils.js index b64689e644cf..e25f69286e69 100644 --- a/devtools/client/app-manager/content/utils.js +++ b/devtools/client/app-manager/content/utils.js @@ -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"); diff --git a/devtools/client/app-manager/simulators-store.js b/devtools/client/app-manager/simulators-store.js index 51a2c41fd75e..fdf4223a857f 100644 --- a/devtools/client/app-manager/simulators-store.js +++ b/devtools/client/app-manager/simulators-store.js @@ -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:[]}); diff --git a/devtools/client/app-manager/test/head.js b/devtools/client/app-manager/test/head.js index 6607da4333b5..8d5d37470d90 100644 --- a/devtools/client/app-manager/test/head.js +++ b/devtools/client/app-manager/test/head.js @@ -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"); diff --git a/devtools/client/app-manager/test/test_app_validator.html b/devtools/client/app-manager/test/test_app_validator.html index a73cb1ba1093..6115854d5226 100644 --- a/devtools/client/app-manager/test/test_app_validator.html +++ b/devtools/client/app-manager/test/test_app_validator.html @@ -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"); diff --git a/devtools/client/app-manager/test/test_connection_store.html b/devtools/client/app-manager/test/test_connection_store.html index 7b2fb7ccfd65..8d87bcc12d65 100644 --- a/devtools/client/app-manager/test/test_connection_store.html +++ b/devtools/client/app-manager/test/test_connection_store.html @@ -25,7 +25,7 @@ Bug 901519 - [app manager] data store for connections