Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/components/hulahopAddCertException.js
blob: 3d1f88e80308203661dbffa266a2f751e31d5f0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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);
}