Bug 1402485 - Remove Delete all Session cookies option for non cookie staorage r=miker

Borrowed code from onTreePopupShowing into onTablePopupShowing

MozReview-Commit-ID: 1IotAfqwlpg

--HG--
extra : rebase_source : bd1bc0256ccfbcaf508b319167cab9c21be7dbf2
This commit is contained in:
SagarB 2017-12-10 18:56:12 +05:30
Родитель 7be35fc71a
Коммит 8b9b4b8fd7
1 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -1097,6 +1097,15 @@ StorageUI.prototype = {
this._tablePopupAddItem.hidden = true; this._tablePopupAddItem.hidden = true;
} }
let showDeleteAllSessionCookies = false;
if (this.actorSupportsRemoveAllSessionCookies) {
if (type === "cookies" && selectedItem.length === 2) {
showDeleteAllSessionCookies = true;
}
}
this._tablePopupDeleteAllSessionCookies.hidden = !showDeleteAllSessionCookies;
if (type === "cookies") { if (type === "cookies") {
let host = addEllipsis(data.host); let host = addEllipsis(data.host);