Backed out changeset 713114c0331a (bug 1938707) by developer request CLOSED TREE
[gecko.git] / js / xpconnect / tests / mochitest / test_enable_privilege.html
blob03043e9ce6d0082cb921eec1f715cb367ad8234a
1 <!DOCTYPE html>
2 <html lang="en" dir="ltr">
3 <head>
4 <title>Test page for enablePrivilege</title>
5 <script src="/tests/SimpleTest/SimpleTest.js"></script>
6 <script>
7 function init() {
8 var result = document.getElementById("result");
9 try {
10 /* globals netscape */
11 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
12 result.textContent = "FAIL";
13 } catch (ex) {
14 result.textContent = "PASS";
17 </script>
18 </head>
19 <body>
20 <p id="result"></p>
21 <script>
22 init();
23 is(result.textContent, "PASS", "enablePrivilege should be unavaillable");
24 </script>
25 </body>
26 </html>