blob: 143d252d11d9e42f45d8bb92002b438559e958d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
"use strict";
const INSTALL_PAGE = `${BASE}/file_install_extensions.html`;
async function installTrigger(filename) {
BrowserTestUtils.loadURI(gBrowser.selectedBrowser, INSTALL_PAGE);
await BrowserTestUtils.browserLoaded(gBrowser.selectedBrowser);
SpecialPowers.spawn(
gBrowser.selectedBrowser,
[`${BASE}/${filename}`],
async function(url) {
content.wrappedJSObject.installTrigger(url);
}
);
}
add_task(() => testInstallMethod(installTrigger, "installAmo"));
|