Bug 1628325 - Add a isZombieTab property to TabDescriptor r=daisuke
authorJulian Descottes <jdescottes@mozilla.com>
Wed, 03 Jun 2020 12:26:09 +0000
changeset 533838 1a4de21085f64eae0050f8f6ca326edab4f41ec8
parent 533837 d5b9f1712970c5e109d8f2e9a61e248f9ef7545c
child 533839 a7793b023327b42422575d7773b7f24c8e731b8b
push id37479
push userapavel@mozilla.com
push dateThu, 04 Jun 2020 15:32:20 +0000
treeherdermozilla-central@0d21bdf3fc01 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdaisuke
bugs1628325
milestone79.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 1628325 - Add a isZombieTab property to TabDescriptor r=daisuke Depends on D77487 Differential Revision: https://phabricator.services.mozilla.com/D77497
devtools/client/fronts/descriptors/tab.js
devtools/server/actors/descriptors/tab.js
--- a/devtools/client/fronts/descriptors/tab.js
+++ b/devtools/client/fronts/descriptors/tab.js
@@ -40,16 +40,20 @@ class TabDescriptorFront extends FrontCl
     this._form = json;
     this.traits = json.traits || {};
   }
 
   setLocalTab(localTab) {
     this._localTab = localTab;
   }
 
+  get isZombieTab() {
+    return this._form.isZombieTab;
+  }
+
   get outerWindowID() {
     return this._form.outerWindowID;
   }
 
   get selected() {
     return this._form.selected;
   }
 
--- a/devtools/server/actors/descriptors/tab.js
+++ b/devtools/server/actors/descriptors/tab.js
@@ -50,16 +50,17 @@ const TabDescriptorActor = ActorClassWit
 
   form() {
     const form = {
       actor: this.actorID,
       browsingContextID:
         this._browser && this._browser.browsingContext
           ? this._browser.browsingContext.id
           : null,
+      isZombieTab: this._isZombieTab(),
       outerWindowID: this._getOuterWindowId(),
       selected: this.selected,
       title: this._getTitle(),
       traits: {
         // Backward compatibility for FF75 or older.
         // Remove when FF76 is on the release channel.
         getFavicon: true,
         // Backward compatibility for FF76 or older.