summaryrefslogtreecommitdiffstats
path: root/browser/base/content/test/webextensions/file_install_extensions.html
blob: 9dd8ae830d5caca8a4889655dfc537cba7436abe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>

<html>
<head>
  <meta charset="utf-8">
</head>
<body>
<script type="text/javascript">
function installMozAM(url) {
  return navigator.mozAddonManager.createInstall({url})
                  .then(install => install.install());
}

function installTrigger(url) {
  InstallTrigger.install({extension: url});
}
</script>
</body>
</html>