rem: if (confirmedEntry) return (confirmedEntry == "1" ? true : false);  var prompt = getWindowWatcher().getNewPrompter(null); var bundle = getWcapBundle(); var dontAskAgain = { value: false }; var bConfirmed = prompt.confirmCheck( bundle.GetStringFromName("noHttpsConfirmation.label"), bundle.formatStringFromName("noHttpsConfirmation.text", [host], 1), bundle.GetStringFromName("noHttpsConfirmation.check.text"), dontAskAgain );  if (dontAskAgain.value) {  var confirmedHttpLogins = getPref( "calendar.wcap.confirmed_http_logins", ""); if (confirmedHttpLogins.length > 0) confirmedHttpLogins += ","; confirmedEntry = (bConfirmed ? "1" : "0"); confirmedHttpLogins += (encodedHost + ":" + confirmedEntry); setPref("calendar.wcap.confirmed_http_logins", confirmedHttpLogins); g_confirmedHttpLogins[encodedHost] = confirmedEntry; 
add: if (confirmedEntry) { bConfirmed = (confirmedEntry == "1" ? true : false); } else { var prompt = getWindowWatcher().getNewPrompter(null); var bundle = getWcapBundle(); var dontAskAgain = { value: false }; var bConfirmed = prompt.confirmCheck( bundle.GetStringFromName("noHttpsConfirmation.label"), bundle.formatStringFromName("noHttpsConfirmation.text", [host], 1), bundle.GetStringFromName("noHttpsConfirmation.check.text"), dontAskAgain );  if (dontAskAgain.value) {   var confirmedHttpLogins = getPref( "calendar.wcap.confirmed_http_logins", ""); if (confirmedHttpLogins.length > 0) confirmedHttpLogins += ","; confirmedEntry = (bConfirmed ? "1" : "0"); confirmedHttpLogins += (encodedHost + ":" + confirmedEntry); setPref("calendar.wcap.confirmed_http_logins", confirmedHttpLogins); g_confirmedHttpLogins[encodedHost] = confirmedEntry; } 
context: function confirmInsecureLogin( uri ){    if (g_confirmedHttpLogins == null) {        g_confirmedHttpLogins = {};        var confirmedHttpLogins = getPref(            "calendar.wcap.confirmed_http_logins", "");        var tuples = confirmedHttpLogins.split(',');        for each ( var tuple in tuples ) {            var ar = tuple.split(':');            g_confirmedHttpLogins[ar[0]] = ar[1];        }    }        var host = uri.hostPort;    var encodedHost = encodeURIComponent(host);    var confirmedEntry = g_confirmedHttpLogins[encodedHost];    if (confirmedEntry)        return (confirmedEntry == "1" ? true : false);        var prompt = getWindowWatcher().getNewPrompter(null);    var bundle = getWcapBundle();    var dontAskAgain = { value: false };    var bConfirmed = prompt.confirmCheck(        bundle.GetStringFromName("noHttpsConfirmation.label"),        bundle.formatStringFromName("noHttpsConfirmation.text", [host], 1),        bundle.GetStringFromName("noHttpsConfirmation.check.text"),        dontAskAgain );        if (dontAskAgain.value) {        // save decision for all running calendars and all future confirmations:        var confirmedHttpLogins = getPref(            "calendar.wcap.confirmed_http_logins", "");        if (confirmedHttpLogins.length > 0)            confirmedHttpLogins += ",";        confirmedEntry = (bConfirmed ? "1" : "0");        confirmedHttpLogins += (encodedHost + ":" + confirmedEntry);        setPref("calendar.wcap.confirmed_http_logins", confirmedHttpLogins);        g_confirmedHttpLogins[encodedHost] = confirmedEntry;    }        return bConfirmed;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/89b24d85225964d30a2d9a8ff00b22e173923eeb/calWcapSession.js/clean/calendar/providers/wcap/calWcapSession.js