зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1583738 - Remove unused isDescriptor trait from webextension descriptor r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D78002
This commit is contained in:
Родитель
8954e9663b
Коммит
64c147e23d
|
@ -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(
|
||||
|
|
Загрузка…
Ссылка в новой задаче