зеркало из https://github.com/mozilla/gecko-dev.git
Fix for Bug 91978 Checking in for Eddy Kim
r=javi, sr=blake Make some PSM prefs lockable.
This commit is contained in:
Родитель
8daf11530a
Коммит
46087dde8d
|
@ -69,7 +69,10 @@
|
||||||
</html>
|
</html>
|
||||||
<hbox halign="left" autostretch="never">
|
<hbox halign="left" autostretch="never">
|
||||||
<button class="dialog" label="&managecerts.button;" disabled="false"
|
<button class="dialog" label="&managecerts.button;" disabled="false"
|
||||||
oncommand="openCertManager();" />
|
oncommand="openCertManager();"
|
||||||
|
id="openCertManagerButton"
|
||||||
|
pref="true" preftype="bool" prefattribute="disabled"
|
||||||
|
prefstring="security.disable_button.openCertManager" />
|
||||||
</hbox>
|
</hbox>
|
||||||
</groupbox>
|
</groupbox>
|
||||||
|
|
||||||
|
@ -81,7 +84,10 @@
|
||||||
</html>
|
</html>
|
||||||
<hbox halign="left" autostretch="never">
|
<hbox halign="left" autostretch="never">
|
||||||
<button class="dialog" label="&managedevices.button;" disabled="false"
|
<button class="dialog" label="&managedevices.button;" disabled="false"
|
||||||
oncommand="openDeviceManager();" />
|
oncommand="openDeviceManager();"
|
||||||
|
id="openDeviceManagerButton"
|
||||||
|
pref="true" preftype="bool" prefattribute="disabled"
|
||||||
|
prefstring="security.disable_button.openDeviceManager" />
|
||||||
</hbox>
|
</hbox>
|
||||||
</groupbox>
|
</groupbox>
|
||||||
|
|
||||||
|
|
|
@ -55,6 +55,10 @@
|
||||||
} catch(e) { /* Put debug output here */ }
|
} catch(e) { /* Put debug output here */ }
|
||||||
|
|
||||||
element.setAttribute("checked", prefValue);
|
element.setAttribute("checked", prefValue);
|
||||||
|
// disable xul element if the pref is locked.
|
||||||
|
if (prefs.PrefIsLocked(prefString)) {
|
||||||
|
element.disabled=true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,10 @@
|
||||||
</html>
|
</html>
|
||||||
<hbox halign="left" autostretch="never">
|
<hbox halign="left" autostretch="never">
|
||||||
<button class="dialog" label="&changepassword.button;" disabled="false"
|
<button class="dialog" label="&changepassword.button;" disabled="false"
|
||||||
oncommand="ChangePW();" />
|
oncommand="ChangePW();"
|
||||||
|
id="changePasswordButton"
|
||||||
|
pref="true" preftype="bool" prefattribute="disabled"
|
||||||
|
prefstring="security.disable_button.changePassword" />
|
||||||
</hbox>
|
</hbox>
|
||||||
</groupbox>
|
</groupbox>
|
||||||
|
|
||||||
|
|
|
@ -69,7 +69,10 @@
|
||||||
<vbox halign="right">
|
<vbox halign="right">
|
||||||
<button class="dialog" label="&edit.sslciphers;"
|
<button class="dialog" label="&edit.sslciphers;"
|
||||||
oncommand="window.openDialog('chrome://pippki/content/pref-ciphers.xul', '',
|
oncommand="window.openDialog('chrome://pippki/content/pref-ciphers.xul', '',
|
||||||
'modal=yes,resizable,chrome');" />
|
'modal=yes,resizable,chrome');"
|
||||||
|
id="editSSLCiphersButton"
|
||||||
|
pref="true" preftype="bool" prefattribute="disabled"
|
||||||
|
prefstring="security.disable_button.editSSLCiphers" />
|
||||||
</vbox>
|
</vbox>
|
||||||
|
|
||||||
</groupbox>
|
</groupbox>
|
||||||
|
|
|
@ -52,8 +52,11 @@
|
||||||
<label value="&validation.crl.label;"/>
|
<label value="&validation.crl.label;"/>
|
||||||
<html> &validation.crl.description; </html>
|
<html> &validation.crl.description; </html>
|
||||||
<hbox halign="left" autostretch="never">
|
<hbox halign="left" autostretch="never">
|
||||||
<button class="dialog" label="&validation.managecrls.button;" disabled="false"
|
<button class="dialog" label="&validation.managecrls.button;"
|
||||||
oncommand="openCrlManager();" />
|
oncommand="openCrlManager();"
|
||||||
|
id="managecrlbutton"
|
||||||
|
pref="true" preftype="bool" prefattribute="disabled"
|
||||||
|
prefstring="security.OCSP.disable_button.managecrl" />
|
||||||
</hbox>
|
</hbox>
|
||||||
</groupbox>
|
</groupbox>
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче