зеркало из https://github.com/mozilla/pjs.git
Backing out bug 239557 - forgot the sr - no more early morning checkins if I can help it
This commit is contained in:
Родитель
44829dcf7f
Коммит
472a172f0e
|
@ -89,15 +89,15 @@
|
|||
var cookieLifetime = document.getElementById("networkCookieLifetime");
|
||||
var lifetimeDays = document.getElementById("lifetimeDays");
|
||||
var alwaysAcceptSession = document.getElementById("alwaysAcceptSession");
|
||||
|
||||
if (cookieBehavior.value == cookies_disabled) {
|
||||
cookieLifetime.disabled = true;
|
||||
if (cookieLifetime.value == ask_before_accepting) {
|
||||
lifetimeDays.disabled = true;
|
||||
alwaysAcceptSession.disabled = false;
|
||||
} else if (cookieLifetime.value == accept_for_n_days) {
|
||||
lifetimeDays.disabled = false;
|
||||
alwaysAcceptSession.disabled = true;
|
||||
} else {
|
||||
lifetimeDays.disabled = true;
|
||||
alwaysAcceptSession.disabled = true;
|
||||
} else {
|
||||
cookieLifetime.disabled = false
|
||||
lifetimeDays.disabled = (cookieLifetime.value != accept_for_n_days);
|
||||
alwaysAcceptSession.disabled = (cookieLifetime.value != ask_before_accepting);
|
||||
}
|
||||
|
||||
if (parent.hPrefWindow.getPrefIsLocked(alwaysAcceptSession.getAttribute("prefstring")) )
|
||||
|
@ -105,10 +105,7 @@
|
|||
|
||||
if (parent.hPrefWindow.getPrefIsLocked(lifetimeDays.getAttribute("prefstring")) )
|
||||
lifetimeDays.disabled = true;
|
||||
|
||||
if (parent.hPrefWindow.getPrefIsLocked(cookieLifetime.getAttribute("prefstring")) )
|
||||
cookieLifetime.disabled = true;
|
||||
|
||||
|
||||
if (!lifetimeDays.disabled && setFocus)
|
||||
lifetimeDays.focus();
|
||||
}
|
||||
|
@ -135,7 +132,7 @@
|
|||
</radiogroup>
|
||||
</groupbox>
|
||||
<groupbox id="networkCookieLifetimePolicy">
|
||||
<caption label="&cookieRetentionPolicy.label;"/>
|
||||
<caption label="&cookieLifetimePolicy.label;"/>
|
||||
<radiogroup id="networkCookieLifetime"
|
||||
prefstring="network.cookie.lifetimePolicy">
|
||||
<radio value="0" label="&acceptNormally.label;" accesskey="&acceptNormally.accesskey;" oncommand="setDisables(false);"/>
|
||||
|
@ -145,7 +142,7 @@
|
|||
oncommand="setDisables(true);"/>
|
||||
<textbox id="lifetimeDays" pref="true" size="4"
|
||||
preftype="int" prefstring="network.cookie.lifetime.days"/>
|
||||
<label value="&days.label;" control="lifetimeDays"/>
|
||||
<label value="&days.label;" for="lifetimeDays"/>
|
||||
</hbox>
|
||||
<hbox>
|
||||
<radio value="1" label="&warnAboutCookies.label;"
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
<!ENTITY disableCookies.label "Block cookies">
|
||||
<!ENTITY disableCookies.accesskey "B">
|
||||
|
||||
<!ENTITY cookieRetentionPolicy.label "Cookie Retention Policy">
|
||||
<!ENTITY cookieLifetimePolicy.label "Cookie Lifetime Policy">
|
||||
|
||||
<!ENTITY acceptNormally.label "Accept cookies normally">
|
||||
<!ENTITY acceptNormally.accesskey "n">
|
||||
|
@ -38,6 +38,6 @@
|
|||
|
||||
<!ENTITY viewCookies.label "Cookie Manager">
|
||||
<!ENTITY viewCookies.accesskey "M">
|
||||
<!ENTITY viewP3P.label "View Privacy Settings">
|
||||
<!ENTITY viewP3P.label "View">
|
||||
<!ENTITY viewP3P.accesskey "V">
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче