Backed out changeset 2176eab309a8 (bug 1613953) for causing xpcshell failures at browser/extensions/doh-rollout/test/unit/test_localStorageMigration.js

CLOSED TREE
This commit is contained in:
Daniel Varga 2020-02-07 18:52:02 +02:00
Родитель 0d5be0b49c
Коммит b3b9fbdc55
1 изменённых файлов: 10 добавлений и 3 удалений

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

@ -57,6 +57,15 @@ add_task(async function setup() {
);
await AddonTestUtils.promiseStartupManager();
let extensionPath = Services.dirsvc.get("GreD", Ci.nsIFile);
extensionPath.append("browser");
extensionPath.append("features");
extensionPath.append(ADDON_ID);
if (!extensionPath.exists()) {
extensionPath.leafName = `${ADDON_ID}.xpi`;
}
let startupPromise = new Promise(resolve => {
const { apiManager } = ExtensionParent;
function onReady(event, extension) {
@ -69,9 +78,7 @@ add_task(async function setup() {
apiManager.on("ready", onReady);
});
await AddonManager.installBuiltinAddon(
"resource:///features/doh-rollout@mozilla.org/"
);
await AddonManager.installTemporaryAddon(extensionPath);
await startupPromise;
});