Bug 1561092 - Fix intermittent browser_dbg-wasm-sourcemaps test. r=davidwalsh
☠☠ backed out by 49dbe87c01da ☠ ☠
authorJason Laster <jlaster@mozilla.com>
Sun, 07 Jul 2019 21:20:49 +0000
changeset 544428 109fab16fddacbe16a28a8cb9ed8182378fdfef6
parent 544427 f4081c5e99bf3f47f82f70b09edc7b94cc243841
child 544429 49dbe87c01da133fbe2109cb6c37403add2c3149
push id2131
push userffxbld-merge
push dateMon, 26 Aug 2019 18:30:20 +0000
treeherdermozilla-release@b19ffb3ca153 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdavidwalsh
bugs1561092
milestone69.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 1561092 - Fix intermittent browser_dbg-wasm-sourcemaps test. r=davidwalsh Differential Revision: https://phabricator.services.mozilla.com/D36837
devtools/client/debugger/src/actions/ast/setInScopeLines.js
--- a/devtools/client/debugger/src/actions/ast/setInScopeLines.js
+++ b/devtools/client/debugger/src/actions/ast/setInScopeLines.js
@@ -1,16 +1,17 @@
 /* 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 {
   hasInScopeLines,
+  hasSourceActor,
   getSourceWithContent,
   getVisibleSelectedFrame,
 } from "../../selectors";
 
 import { getSourceLineCount } from "../../utils/source";
 
 import { range, flatMap, uniq, without } from "lodash";
 import { isFulfilled } from "../../utils/async-value";
@@ -61,17 +62,21 @@ export function setInScopeLines(cx: Cont
     const { getState, dispatch } = thunkArgs;
     const visibleFrame = getVisibleSelectedFrame(getState());
 
     if (!visibleFrame) {
       return;
     }
 
     const { location } = visibleFrame;
-    if (hasInScopeLines(getState(), location)) {
+
+    if (
+      hasInScopeLines(getState(), location) ||
+      !hasSourceActor(getState(), location.sourceId)
+    ) {
       return;
     }
 
     const lines = await getInScopeLines(cx, location, thunkArgs);
 
     dispatch({
       type: "IN_SCOPE_LINES",
       cx,