diff --git a/browser/components/preferences/cookies.js b/browser/components/preferences/cookies.js index fe9291c4c678..2d00a679ff06 100644 --- a/browser/components/preferences/cookies.js +++ b/browser/components/preferences/cookies.js @@ -582,11 +582,13 @@ var gCookiesWindow = { if (item && seln.count == 1 && item.container && item.open) selectedCookieCount += 2; - var stringKey = selectedCookieCount == 1 ? "removeCookie" : "removeCookies"; - document.getElementById("removeCookie").label = this._bundle.getString(stringKey); + var removeCookie = document.getElementById("removeCookie"); + var removeCookies = document.getElementById("removeCookies"); + removeCookie.parentNode.selectedPanel = + selectedCookieCount == 1 ? removeCookie : removeCookies; document.getElementById("removeAllCookies").disabled = this._view._filtered; - document.getElementById("removeCookie").disabled = !(seln.count > 0); + removeCookie.disabled = removeCookies.disabled = !(seln.count > 0); }, deleteCookie: function () { diff --git a/browser/components/preferences/cookies.xul b/browser/components/preferences/cookies.xul index 858e36c23206..2d4b4779c2c5 100644 --- a/browser/components/preferences/cookies.xul +++ b/browser/components/preferences/cookies.xul @@ -124,9 +124,14 @@ -