blob: e1f96a0b0c0af9ea61b0580dc7f616e7d422b963 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
<!DOCTYPE html>
<html>
<body>
<script type="text/javascript">
/* exported openWindow, navigate, check */
var nav, win;
function openWindow() {
return new Promise(resolve => {
win = window.open(window.location);
win.addEventListener("load", function listener() {
nav = win.navigator;
resolve();
});
});
}
function navigate() {
win.location = "http://example.com/";
}
function check() {
return "mozAddonManager" in nav;
}
</script>
</body>
</html>
|