~ubuntu-branches/ubuntu/lucid/seamonkey/lucid-security

« back to all changes in this revision

Viewing changes to security/manager/pki/resources/content/clientauthask.js

  • Committer: Bazaar Package Importer
  • Author(s): Fabien Tassin
  • Date: 2008-07-29 21:29:02 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080729212902-spm9kpvchp9udwbw
Tags: 1.1.11+nobinonly-0ubuntu1
* New security upstream release: 1.1.11 (LP: #218534)
  Fixes USN-602-1, USN-619-1, USN-623-1 and USN-629-1
* Refresh diverged patch:
  - update debian/patches/80_security_build.patch
* Fix FTBFS with missing -lfontconfig
  - add debian/patches/11_fix_ftbfs_with_fontconfig.patch
  - update debian/patches/series
* Build with default gcc (hardy: 4.2, intrepid: 4.3)
  - update debian/rules
  - update debian/control

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
 
43
43
var dialogParams;
44
44
var itemCount = 0;
 
45
var rememberBox;
45
46
 
46
47
function onLoad()
47
48
{
54
55
    org = dialogParams.GetString(1);
55
56
    issuer = dialogParams.GetString(2);
56
57
 
 
58
    // added with bug 431819. reuse string from caps in order to avoid string changes
 
59
    var capsBundle = srGetStrBundle("chrome://global/locale/security/caps.properties");
 
60
    var rememberString = capsBundle.GetStringFromName("CheckMessage");
 
61
    var rememberSetting = true;
 
62
 
 
63
    var pref = Components.classes['@mozilla.org/preferences-service;1']
 
64
               .getService(Components.interfaces.nsIPrefService);
 
65
    if (pref) {
 
66
      pref = pref.getBranch(null);
 
67
      try {
 
68
        rememberSetting = 
 
69
          pref.getBoolPref("security.remember_cert_checkbox_default_setting");
 
70
      }
 
71
      catch(e) {
 
72
        // pref is missing
 
73
      }
 
74
    }
 
75
 
 
76
    rememberBox = document.getElementById("rememberBox");
 
77
    rememberBox.label = rememberString;
 
78
    rememberBox.checked = rememberSetting;
 
79
 
57
80
    var bundle = srGetStrBundle("chrome://pippki/locale/pippki.properties");
58
81
    var message1 = bundle.formatStringFromName("clientAuthMessage1", 
59
82
                                             [org],
98
121
  dialogParams.SetInt(0,1);
99
122
  var index = parseInt(document.getElementById("nicknames").value);
100
123
  dialogParams.SetInt(1, index);
 
124
  dialogParams.SetInt(2, rememberBox.checked);
101
125
  return true;
102
126
}
103
127
 
104
128
function doCancel()
105
129
{
106
130
  dialogParams.SetInt(0,0);
 
131
  dialogParams.SetInt(1, -1); // invalid value
 
132
  dialogParams.SetInt(2, rememberBox.checked);
107
133
  return true;
108
134
}