Bug 1520957 - [release 119] Fixes an issue where the selected tab is not visible on refresh (#7747). r=dwalsh
☠☠ backed out by 5b1c54cbac38 ☠ ☠
authorJason Laster <jason.laster.11@gmail.com>
Fri, 18 Jan 2019 12:22:52 -0500
changeset 511692 62545dd149d1aa7b064f32e827ea97d31521a280
parent 511691 adfbaafc65e502296c59f21ceed29ecb59aa3208
child 511693 193394b152f20e41a339fe145cbb4bdba0f64780
push id10547
push userffxbld-merge
push dateMon, 21 Jan 2019 13:03:58 +0000
treeherdermozilla-beta@24ec1916bffe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdwalsh
bugs1520957
milestone66.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 1520957 - [release 119] Fixes an issue where the selected tab is not visible on refresh (#7747). r=dwalsh
devtools/client/debugger/new/src/actions/debuggee.js
--- a/devtools/client/debugger/new/src/actions/debuggee.js
+++ b/devtools/client/debugger/new/src/actions/debuggee.js
@@ -1,17 +1,20 @@
 /* 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 { Action, ThunkArgs } from "./types";
 import { closeTabsForMissingThreads } from "./tabs";
+import { features } from "../utils/prefs";
 
 export function updateWorkers() {
   return async function({ dispatch, getState, client }: ThunkArgs) {
     const workers = await client.fetchWorkers();
     dispatch(({ type: "SET_WORKERS", workers }: Action));
 
-    dispatch(closeTabsForMissingThreads(workers));
+    if (features.windowlessWorkers) {
+      dispatch(closeTabsForMissingThreads(workers));
+    }
   };
 }