зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
0578684be5
Коммит
5fc6358573
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче