Bug 1583738 - Remove unused isDescriptor trait from webextension descriptor r=daisuke

Differential Revision: https://phabricator.services.mozilla.com/D78002
This commit is contained in:
Julian Descottes 2020-06-09 09:15:33 +00:00
Родитель 8954e9663b
Коммит 64c147e23d
2 изменённых файлов: 2 добавлений и 12 удалений

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

@ -60,13 +60,7 @@ class WebExtensionDescriptorFront extends FrontClassWithSpec(
// the addon (e.g. when the addon is disabled or uninstalled).
// To retrieve the target actor instance, we call its "connect" method, (which
// fetches the target actor targetForm from a WebExtensionTargetActor instance).
let form = null;
// FF70+ The method is now called getTarget`
if (!this.traits.isDescriptor) {
form = await super.connect();
} else {
form = await super.getTarget();
}
const form = await super.getTarget();
const front = new BrowsingContextTargetFront(this.conn, null, this);
front.form(form);
this.manage(front);

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

@ -83,11 +83,7 @@ const WebExtensionDescriptorActor = protocol.ActorClassWithSpec(
manifestURL: policy && policy.getURL("manifest.json"),
name: this.addon.name,
temporarilyInstalled: this.addon.temporarilyInstalled,
traits: {
// checked in the front descriptor.
// remove when FF70 is on release channel
isDescriptor: true,
},
traits: {},
type: this.addon.type,
url: this.addon.sourceURI ? this.addon.sourceURI.spec : undefined,
warnings: ExtensionParent.DebugUtils.getExtensionManifestWarnings(