Bug 1544372 - part1: sort webextension actor objects alphabetically (tidying) r=Ola

Differential Revision: https://phabricator.services.mozilla.com/D28629

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Julian Descottes 2019-04-26 13:57:04 +00:00
Родитель 0fa89e18d5
Коммит 6bb4bedecb
1 изменённых файлов: 9 добавлений и 9 удалений

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

@ -70,19 +70,19 @@ const WebExtensionActor = protocol.ActorClassWithSpec(webExtensionSpec, {
const policy = ExtensionParent.WebExtensionPolicy.getByID(this.addonId);
return {
actor: this.actorID,
id: this.addonId,
name: this.addon.name,
url: this.addon.sourceURI ? this.addon.sourceURI.spec : undefined,
debuggable: this.addon.isDebuggable,
// iconDataURL is available after calling loadIconDataURL
iconDataURL: this._iconDataURL,
iconURL: this.addon.iconURL,
id: this.addonId,
isAPIExtension: this.addon.isAPIExtension,
isSystem: this.addon.isSystem,
debuggable: this.addon.isDebuggable,
isWebExtension: this.addon.isWebExtension,
manifestURL: policy && policy.getURL("manifest.json"),
name: this.addon.name,
temporarilyInstalled: this.addon.temporarilyInstalled,
type: this.addon.type,
isWebExtension: this.addon.isWebExtension,
isAPIExtension: this.addon.isAPIExtension,
manifestURL: policy && policy.getURL("manifest.json"),
url: this.addon.sourceURI ? this.addon.sourceURI.spec : undefined,
warnings: ExtensionParent.DebugUtils.getExtensionManifestWarnings(this.addonId),
};
},
@ -97,11 +97,11 @@ const WebExtensionActor = protocol.ActorClassWithSpec(webExtensionSpec, {
// Merge into the child actor form, some addon metadata
// (e.g. the addon name shown in the addon debugger window title).
return Object.assign(form, {
id: this.addon.id,
name: this.addon.name,
iconURL: this.addon.iconURL,
id: this.addon.id,
// Set the isOOP attribute on the connected child actor form.
isOOP: proxy.isOOP,
name: this.addon.name,
});
});
this._destroyProxy = () => proxy.destroy();