Bug 1672433 - Remove backward compatibility method getDescription from devtools/client/fronts/device.js r=jdescottes

Differential Revision: https://phabricator.services.mozilla.com/D94731
This commit is contained in:
Fabien CASTERS 2020-10-26 14:29:28 +00:00
Родитель dea577140e
Коммит 96b7d5f1bb
1 изменённых файлов: 0 добавлений и 15 удалений

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

@ -17,21 +17,6 @@ class DeviceFront extends FrontClassWithSpec(deviceSpec) {
// Attribute name from which to retrieve the actorID out of the target actor's form
this.formAttributeName = "deviceActor";
}
/**
* Handle backward compatibility for getDescription.
* Can be removed on Firefox 70 reaches the release channel.
*/
async getDescription() {
const description = await super.getDescription();
// Backward compatibility when connecting for Firefox 69 or older.
if (typeof description.canDebugServiceWorkers === "undefined") {
description.canDebugServiceWorkers = !description.isMultiE10s;
}
return description;
}
}
exports.DeviceFront = DeviceFront;