Bug 1613953 - Install doh-rollout add-on as builtin rather than temporary in local storage migration test. r=mixedpuppy

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Nihanth Subramanya 2020-02-07 15:57:20 +00:00
Родитель 020306b029
Коммит 68aa52dd77
1 изменённых файлов: 3 добавлений и 10 удалений

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

@ -57,15 +57,6 @@ 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) {
@ -78,7 +69,9 @@ add_task(async function setup() {
apiManager.on("ready", onReady);
});
await AddonManager.installTemporaryAddon(extensionPath);
await AddonManager.installBuiltinAddon(
"resource:///features/doh-rollout@mozilla.org/"
);
await startupPromise;
});