зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1618691 - Remove < FF75 backward compatibility code for getProcess r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D69542 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
ff888afb15
Коммит
8214e4fd09
|
@ -212,21 +212,6 @@ class RootFront extends FrontClassWithSpec(rootSpec) {
|
|||
return this.getProcess(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve the target descriptor for the provided id.
|
||||
*
|
||||
* @return {ProcessDescriptorFront} the process descriptor front for the
|
||||
* provided id.
|
||||
*/
|
||||
async getProcess(id) {
|
||||
const { form, processDescriptor } = await super.getProcess(id);
|
||||
// Backward compatibility: FF74 or older servers will return the
|
||||
// process descriptor as the "form" property of the response.
|
||||
// Once FF75 is merged to release we can always expect `processDescriptor`
|
||||
// to be defined.
|
||||
return processDescriptor || form;
|
||||
}
|
||||
|
||||
/**
|
||||
* Override default listTabs request in order to return a list of
|
||||
* BrowsingContextTargetFronts while updating their selected state.
|
||||
|
|
|
@ -578,7 +578,7 @@ exports.RootActor = protocol.ActorClassWithSpec(rootSpec, {
|
|||
processDescriptor = new ProcessDescriptorActor(this.conn, options);
|
||||
this._processDescriptorActorPool.manage(processDescriptor);
|
||||
}
|
||||
return { processDescriptor };
|
||||
return processDescriptor;
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
@ -20,14 +20,6 @@ types.addDictType("root.listServiceWorkerRegistrations", {
|
|||
types.addDictType("root.listRemoteFrames", {
|
||||
frames: "array:frameDescriptor",
|
||||
});
|
||||
// Backward compatibility: FF74 or older servers will return the
|
||||
// process descriptor as the "form" property of the response.
|
||||
// Once FF75 is merged to release we can always expect `processDescriptor`
|
||||
// to be defined.
|
||||
types.addDictType("root.getProcess", {
|
||||
form: "nullable:processDescriptor",
|
||||
processDescriptor: "nullable:processDescriptor",
|
||||
});
|
||||
types.addDictType("root.listTabs", {
|
||||
// Backwards compatibility for servers FF74 and before
|
||||
// once FF75 is merged into release, we can return tabDescriptors directly.
|
||||
|
@ -108,7 +100,9 @@ const rootSpecPrototype = {
|
|||
request: {
|
||||
id: Arg(0, "number"),
|
||||
},
|
||||
response: RetVal("root.getProcess"),
|
||||
response: {
|
||||
processDescriptor: RetVal("processDescriptor"),
|
||||
},
|
||||
},
|
||||
|
||||
listRemoteFrames: {
|
||||
|
|
Загрузка…
Ссылка в новой задаче