blob: ba36533109e5e8a86ce2c9ae790ab052912ab80e (
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
|
<!DOCTYPE html>
<html>
<body>
<script type="text/javascript">
var nav, win;
function openWindow() {
return new Promise(resolve => {
win = window.open(window.location);
win.addEventListener("load", function listener() {
nav = win.navigator;
resolve();
}, false);
});
}
function navigate() {
win.location = "http://example.com/";
}
function check() {
return "mozAddonManager" in nav;
}
</script>
</body>
</html>
|