blob: 9d18e46848f1df54e8fdeb3dd76f9044cc63b363 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<title>Test page for enablePrivilege</title>
<script>
function init() {
var result = document.getElementById("result");
try {
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
result.textContent = "FAIL";
}
catch (ex) {
result.textContent = "PASS";
}
}
</script>
</head>
<body onload="init();">
<p id="result"></p>
</body>
</html>
|