diff --git a/extensions/cookie/resources/content/pref-cookies.xul b/extensions/cookie/resources/content/pref-cookies.xul index 849f8681f247..8a307fbbe8c3 100644 --- a/extensions/cookie/resources/content/pref-cookies.xul +++ b/extensions/cookie/resources/content/pref-cookies.xul @@ -18,7 +18,7 @@ Rights Reserved. Contributor(s): - Håkan Waara + HÃ¥kan Waara Peter Annema --> @@ -41,7 +41,7 @@ function init() { parent.initPanel('chrome://cookie/content/pref-cookies.xul'); - setDisables(); + setDisables(false); const NS_COOKIECONSENT_CONTRACTID = '@mozilla.org/cookie-consent;1'; if (NS_COOKIECONSENT_CONTRACTID in Components.classes) { @@ -56,7 +56,7 @@ const cookies_p3p = "3"; const cookies_enabled = "0"; - function setDisables() + function setDisables(setFocus) { var cookieBehavior = document.getElementById("networkCookieBehaviour"); @@ -97,7 +97,7 @@ if (parent.hPrefWindow.getPrefIsLocked(lifetimeDays.getAttribute("prefstring")) ) lifetimeDays.disabled = true; - if (! lifetimeDays.disabled) + if (!lifetimeDays.disabled && setFocus) lifetimeDays.focus(); } ]]> @@ -107,18 +107,18 @@ + accesskey="&disableCookies.accesskey;" oncommand="setDisables(false);"/> + accesskey="&accOrgCookiesRadio.accesskey;" oncommand="setDisables(false);"/>