diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2008-06-15 02:34:54 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2008-06-15 02:34:54 (GMT) |
commit | 20f9a0fcd51e5edc7ea5c66fb655cd028319100d (patch) | |
tree | 45f4cd39138a52699982c90d80fa7105cd6b5c6c /components/hulahopAddCertException.js | |
parent | 5818437129222cb7a348f8a948e6b82a6bc5dc1d (diff) |
Add support for adding certificate exceptions. Same UI as firefox.
Diffstat (limited to 'components/hulahopAddCertException.js')
-rw-r--r-- | components/hulahopAddCertException.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/components/hulahopAddCertException.js b/components/hulahopAddCertException.js new file mode 100644 index 0000000..3d1f88e --- /dev/null +++ b/components/hulahopAddCertException.js @@ -0,0 +1,21 @@ +Components.utils.import("resource://gre/modules/XPCOMUtils.jsm"); + +function AddCertException() { }; + +AddCertException.prototype = { + classDescription: "AddCertException XPCOM Component", + classID: Components.ID("{4117128f-0e50-4863-b7a7-40a853451cc0}"), + contractID: "@sugarlabs.org/add-cert-exception;1", + QueryInterface: XPCOMUtils.generateQI([Components.interfaces.hulahopAddCertException]), + showDialog: function(window) { + var params = { location : window.location.href }; + window.openDialog('chrome://pippki/content/exceptionDialog.xul', + '', 'chrome,centerscreen,modal', params); + } +} + +var components = [AddCertException]; +function NSGetModule(compMgr, fileSpec) { + return XPCOMUtils.generateModule(components); +} + |