Bug 1668117 - [devtools] do not load DevToolsUtils from devtools-modules in debugger r=nchevobbe
authorJulian Descottes <jdescottes@mozilla.com>
Fri, 02 Oct 2020 15:38:06 +0000
changeset 551339 040c0c95a70f8feb7f2fb2175f585718215f6f39
parent 551338 aebd30f6bd1e1c9d5e9b8effcd1e27f32f7959f1
child 551340 18a203ae7737208a22eddac90f8825e303c0d57d
push id37830
push usernbeleuzu@mozilla.com
push dateSat, 03 Oct 2020 10:23:35 +0000
treeherdermozilla-central@7d7faf0b6d7a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnchevobbe
bugs1668117
milestone83.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1668117 - [devtools] do not load DevToolsUtils from devtools-modules in debugger r=nchevobbe Depends on D91851 Differential Revision: https://phabricator.services.mozilla.com/D91852
devtools/client/debugger/src/components/Editor/Preview/ExceptionPopup.js
devtools/client/debugger/src/utils/utils.js
--- a/devtools/client/debugger/src/components/Editor/Preview/ExceptionPopup.js
+++ b/devtools/client/debugger/src/components/Editor/Preview/ExceptionPopup.js
@@ -13,17 +13,19 @@ const {
   REPS: { StringRep },
 } = Reps;
 
 import actions from "../../../actions";
 
 import { getThreadContext } from "../../../selectors";
 
 import AccessibleImage from "../../shared/AccessibleImage";
-import { DevToolsUtils } from "devtools-modules";
+
+// $FlowIgnore
+const DevToolsUtils = require("devtools/shared/DevToolsUtils");
 
 import type { ThreadContext, StacktraceFrame, Exception } from "../../../types";
 
 type Props = {
   cx: ThreadContext,
   clearPreview: typeof actions.clearPreview,
   selectSourceURL: typeof actions.selectSourceURL,
   exception: Exception,
--- a/devtools/client/debugger/src/utils/utils.js
+++ b/devtools/client/debugger/src/utils/utils.js
@@ -1,16 +1,18 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
 
 // @flow
 
 import type { SourceContent } from "../types";
-import { DevToolsUtils } from "devtools-modules";
+
+// $FlowIgnore
+const DevToolsUtils = require("devtools/shared/DevToolsUtils");
 
 /**
  * Utils for utils, by utils
  * @module utils/utils
  */
 
 /**
  * @memberof utils/utils