Bug 1680440 - [devtools] Remove hasTabInfo trait on Tab descriptor. r=ladybenko.

The trait was added in 77, so we can safely remove it now.

Differential Revision: https://phabricator.services.mozilla.com/D98727
This commit is contained in:
Nicolas Chevobbe 2020-12-11 13:54:13 +00:00
Родитель 0578684be5
Коммит 5fc6358573
6 изменённых файлов: 0 добавлений и 20 удалений

Просмотреть файл

@ -122,7 +122,6 @@ async function testAddonsOnMockedRemoteClient(
outerWindowID: 0,
traits: {
getFavicon: true,
hasTabInfo: true,
},
url: "http://some.random/url.com",
};

Просмотреть файл

@ -140,7 +140,6 @@ async function testWorkerOnMockedRemoteClient(
outerWindowID: 0,
traits: {
getFavicon: true,
hasTabInfo: true,
},
url: "http://some.random/url.com",
};

Просмотреть файл

@ -118,7 +118,6 @@ function createThisFirefoxClientMock() {
outerWindowID: 0,
traits: {
getFavicon: true,
hasTabInfo: true,
},
url: "about:debugging",
};

Просмотреть файл

@ -156,19 +156,6 @@ class TabDescriptorFront extends FrontClassWithSpec(tabDescriptorSpec) {
*/
async retrieveAsyncFormData() {
try {
if (!this.traits.hasTabInfo) {
// @backward-compat { version 77 }
const targetForm = await super.getTarget();
this._form.outerWindowID = targetForm.outerWindowID;
this._form.title = targetForm.title;
this._form.url = targetForm.url;
if (!this.traits.getFavicon) {
// @backward-compat { version 76 }
this._form.favicon = targetForm.favicon;
}
}
if (this.traits.getFavicon) {
this._form.favicon = await this.getFavicon();
}

Просмотреть файл

@ -62,9 +62,6 @@ const TabDescriptorActor = ActorClassWithSpec(tabDescriptorSpec, {
traits: {
// @backward-compat { version 76 }
getFavicon: true,
// @backward-compat { version 77 } This trait indicates that meta data such as
// title, url and outerWindowID are directly available on the TabDescriptor.
hasTabInfo: true,
// @backward-compat { version 77 }
watcher: true,
},

Просмотреть файл

@ -130,7 +130,6 @@ const TestDescriptorActor = protocol.ActorClassWithSpec(tabDescriptorSpec, {
actor: this.actorID,
traits: {
getFavicon: true,
hasTabInfo: true,
},
selected: this.selected,
title: this._targetActor.title,