blob: 4f1a064760ae27fba42dd0dc5315d55caa9cc012 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
"use strict";
const INSTALL_PAGE = `${BASE}/file_install_extensions.html`;
async function installMozAM(filename) {
let browser = document.getElementById("tabmail").selectedBrowser;
BrowserTestUtils.loadURIString(browser, INSTALL_PAGE);
await BrowserTestUtils.browserLoaded(browser);
await SpecialPowers.spawn(
browser,
[`${BASE}/${filename}`],
async function (url) {
await content.wrappedJSObject.installMozAM(url);
}
);
}
add_task(() => testInstallMethod(installMozAM));
|