diff options
Diffstat (limited to 'testing/firefox-ui/resources/security/enable_privilege.html')
-rw-r--r-- | testing/firefox-ui/resources/security/enable_privilege.html | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/testing/firefox-ui/resources/security/enable_privilege.html b/testing/firefox-ui/resources/security/enable_privilege.html new file mode 100644 index 000000000..9d18e4684 --- /dev/null +++ b/testing/firefox-ui/resources/security/enable_privilege.html @@ -0,0 +1,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> |