зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
0d5be0b49c
Коммит
b3b9fbdc55
|
@ -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;
|
||||
});
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче