2 * (C) Copyright 2008 Jeremy Maitin-Shepard
4 * Use, modification, and distribution are subject to the terms specified in the
8 function ssl_add_exception(buffer) {
9 /* FIXME: A user preference variable should specify whether to
10 * pre-fill location and furthermore (dependent on pre-filling the
11 * location) whether prefetchCert should be set to true. */
12 var params = { exceptionAdded: false };
13 if (buffer instanceof content_buffer) {
14 params.prefetchCert = true;
15 params.location = buffer.current_uri.spec;
17 buffer.window.openDialog("chrome://pippki/content/exceptionDialog.xul",
18 "", "chrome,centerscreen,modal", params);
19 if ((buffer instanceof content_buffer) && params.exceptionAdded)
23 interactive("ssl-add-exception",
24 "Add an exception for the SSL certificate of the current content page.",
25 function (I) {ssl_add_exception(I.buffer);});
27 function ssl_certificate_manager() {
28 make_chrome_window("chrome://pippki/content/certManager.xul", null);
31 interactive("ssl-certificate-manager",
32 "Show the SSL certificate manager.\n" +
33 "The certificate manager can be used to view, import, and export certificates" +
34 " for Certificate Authorities (CA) as well as web sites.",
35 ssl_certificate_manager);