2 function ssl_add_exception(buffer) {
3 /* FIXME: A user preference variable should specify whether to
4 * pre-fill location and furthermore (dependent on pre-filling the
5 * location) whether prefetchCert should be set to true. */
6 var params = { exceptionAdded: false };
7 if (buffer instanceof content_buffer) {
8 params.prefetchCert = true;
9 params.location = buffer.current_URI.spec;
11 buffer.window.openDialog("chrome://pippki/content/exceptionDialog.xul",
12 "", "chrome,centerscreen,modal", params);
13 if ((buffer instanceof content_buffer) && params.exceptionAdded)
17 interactive("ssl-add-exception",
18 "Add an exception for the SSL certificate of the current content page.",
19 function (I) {ssl_add_exception(I.buffer);});
21 function ssl_certificate_manager() {
22 make_chrome_window("chrome://pippki/content/certManager.xul", null);
25 interactive("ssl-certificate-manager",
26 "Show the SSL certificate manager.\n" +
27 "The certificate manager can be used to view, import, and export certificates" +
28 " for Certificate Authorities (CA) as well as web sites.",
29 ssl_certificate_manager);